summaryrefslogtreecommitdiff
path: root/protocols/Gadu-Gadu/src
diff options
context:
space:
mode:
authorRozhuk Ivan <rozhuk.im@gmail.com>2014-12-01 00:07:01 +0000
committerRozhuk Ivan <rozhuk.im@gmail.com>2014-12-01 00:07:01 +0000
commitb2fad485cd5b41744ef0cc4a02722c021afd926c (patch)
treeaa19403cd699066600e8306be8ad33e4a17fba6f /protocols/Gadu-Gadu/src
parentfc62f1f1e1f8af40a1f7efe0ba3afc358fb66ef3 (diff)
ZeroMemory -> memset, few bugs fised
git-svn-id: http://svn.miranda-ng.org/main/trunk@11184 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Gadu-Gadu/src')
-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));
}