summaryrefslogtreecommitdiff
path: root/protocols/Gadu-Gadu
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Gadu-Gadu')
-rw-r--r--protocols/Gadu-Gadu/src/avatar.cpp2
-rw-r--r--protocols/Gadu-Gadu/src/oauth.cpp4
-rw-r--r--protocols/Gadu-Gadu/src/userutils.cpp2
3 files changed, 4 insertions, 4 deletions
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));
}