From b2fad485cd5b41744ef0cc4a02722c021afd926c Mon Sep 17 00:00:00 2001 From: Rozhuk Ivan Date: Mon, 1 Dec 2014 00:07:01 +0000 Subject: ZeroMemory -> memset, few bugs fised git-svn-id: http://svn.miranda-ng.org/main/trunk@11184 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Gadu-Gadu/src/avatar.cpp | 2 +- protocols/Gadu-Gadu/src/oauth.cpp | 4 ++-- protocols/Gadu-Gadu/src/userutils.cpp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'protocols/Gadu-Gadu/src') diff --git a/protocols/Gadu-Gadu/src/avatar.cpp b/protocols/Gadu-Gadu/src/avatar.cpp index e3f871cfdf..f54dda4d3e 100644 --- a/protocols/Gadu-Gadu/src/avatar.cpp +++ b/protocols/Gadu-Gadu/src/avatar.cpp @@ -463,7 +463,7 @@ void __cdecl GGPROTO::setavatarthread(void *param) httpHeaders[1].szValue = token; //construct 2nd request - ZeroMemory(&req, sizeof(req)); + memset(&req, 0, sizeof(req)); req.cbSize = sizeof(req); req.requestType = REQUEST_POST; req.szUrl = "http://avatars.nowe.gg/upload"; diff --git a/protocols/Gadu-Gadu/src/oauth.cpp b/protocols/Gadu-Gadu/src/oauth.cpp index 6d4749f585..4918700cc8 100644 --- a/protocols/Gadu-Gadu/src/oauth.cpp +++ b/protocols/Gadu-Gadu/src/oauth.cpp @@ -349,7 +349,7 @@ int GGPROTO::oauth_receivetoken() mir_free(str); str = mir_strdup(szUrl); - ZeroMemory(&req, sizeof(req)); + memset(&req, 0, sizeof(req)); req.cbSize = sizeof(req); req.requestType = REQUEST_POST; req.szUrl = szUrl; @@ -376,7 +376,7 @@ int GGPROTO::oauth_receivetoken() token = NULL; token_secret = NULL; - ZeroMemory(&req, sizeof(req)); + memset(&req, 0, sizeof(req)); req.cbSize = sizeof(req); req.requestType = REQUEST_POST; req.szUrl = szUrl; diff --git a/protocols/Gadu-Gadu/src/userutils.cpp b/protocols/Gadu-Gadu/src/userutils.cpp index bbd3e6b01f..88596aeaaf 100644 --- a/protocols/Gadu-Gadu/src/userutils.cpp +++ b/protocols/Gadu-Gadu/src/userutils.cpp @@ -275,6 +275,6 @@ void GGPROTO::threadwait(GGTHREAD *thread) if (!thread->hThread) return; while (WaitForSingleObjectEx(thread->hThread, INFINITE, TRUE) != WAIT_OBJECT_0); CloseHandle(thread->hThread); - ZeroMemory(thread, sizeof(GGTHREAD)); + memset(thread, 0, sizeof(GGTHREAD)); } -- cgit v1.2.3