From 30fe81cd562c17b2e10da8e5e7e57921477d3125 Mon Sep 17 00:00:00 2001 From: CTurt Date: Mon, 8 Dec 2014 17:36:43 +0000 Subject: [PATCH] Less Windowsy --- PC/source/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/PC/source/main.c b/PC/source/main.c index 1ab92c5..d91a642 100644 --- a/PC/source/main.c +++ b/PC/source/main.c @@ -48,7 +48,8 @@ int WINAPI WinMain(HINSTANCE hInst, HINSTANCE hPrevInst, LPSTR lpCmd, int nShow) startListening(); while(1) { - ZeroMemory(buffer, sizeof(struct packet)); + //ZeroMemory(buffer, sizeof(struct packet)); + memset(&buffer, 0, sizeof(packet)); while(receiveBuffer(sizeof(struct packet)) <= 0) { // Waiting