diff options
author | Sergey Bolhovskoy <elzorfox@ya.ru> | 2015-12-30 17:26:47 +0000 |
---|---|---|
committer | Sergey Bolhovskoy <elzorfox@ya.ru> | 2015-12-30 17:26:47 +0000 |
commit | c54a3deedb05a5af983bcc6092aaefbc22519726 (patch) | |
tree | e31c1431150c9783c6384052c0e57520b165ea6b /protocols/VKontakte/src | |
parent | db90dca1d7e6c474e9eac64d09ba46aa121dfdc5 (diff) |
VKontakte: fix(???) bug #1121
git-svn-id: http://svn.miranda-ng.org/main/trunk@15971 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/VKontakte/src')
-rw-r--r-- | protocols/VKontakte/src/vk_pollserver.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/protocols/VKontakte/src/vk_pollserver.cpp b/protocols/VKontakte/src/vk_pollserver.cpp index fcff46c070..4e210d6743 100644 --- a/protocols/VKontakte/src/vk_pollserver.cpp +++ b/protocols/VKontakte/src/vk_pollserver.cpp @@ -194,7 +194,8 @@ int CVkProto::PollServer() NETLIBHTTPREQUEST *reply;
CMStringA szReqUrl(FORMAT, "https://%s?act=a_check&key=%s&ts=%s&wait=25&access_token=%s&mode=%d", m_pollingServer, m_pollingKey, m_pollingTs, m_szAccessToken, 106);
// see mode parametr description on https://vk.com/dev/using_longpoll (Russian version)
- NETLIBHTTPREQUEST req = { sizeof(req) };
+ NETLIBHTTPREQUEST req = {};
+ req.cbSize = sizeof(req);
req.requestType = REQUEST_GET;
req.szUrl = mir_strdup(szReqUrl);
req.flags = VK_NODUMPHEADERS | NLHRF_PERSISTENT | NLHRF_HTTP11 | NLHRF_SSL;
|