aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/common/windows/http_upload.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/common/windows/http_upload.cc b/src/common/windows/http_upload.cc
index d93f4cfd..2f9ffa92 100644
--- a/src/common/windows/http_upload.cc
+++ b/src/common/windows/http_upload.cc
@@ -83,11 +83,11 @@ bool HTTPUpload::SendRequest(const wstring &url,
memset(&components, 0, sizeof(components));
components.dwStructSize = sizeof(components);
components.lpszScheme = scheme;
- components.dwSchemeLength = sizeof(scheme);
+ components.dwSchemeLength = sizeof(scheme) / sizeof(scheme[0]);
components.lpszHostName = host;
- components.dwHostNameLength = sizeof(host);
+ components.dwHostNameLength = sizeof(host) / sizeof(host[0]);
components.lpszUrlPath = path;
- components.dwUrlPathLength = sizeof(path);
+ components.dwUrlPathLength = sizeof(path) / sizeof(path[0]);
if (!InternetCrackUrl(url.c_str(), static_cast<DWORD>(url.size()),
0, &components)) {
return false;