aboutsummaryrefslogtreecommitdiff
path: root/src/common/windows
diff options
context:
space:
mode:
authorted.mielczarek <ted.mielczarek@4c0a9323-5329-0410-9bdc-e9ce6186880e>2012-07-20 17:54:32 +0000
committerted.mielczarek <ted.mielczarek@4c0a9323-5329-0410-9bdc-e9ce6186880e>2012-07-20 17:54:32 +0000
commitcd7719726468a2a295cc41a126e1af97a5287d95 (patch)
tree664b3cd1991783b45008fbb74268b4d675ac5adf /src/common/windows
parentMove minidump_extension_linux.h contents into minidump_format.h (diff)
downloadbreakpad-cd7719726468a2a295cc41a126e1af97a5287d95.tar.xz
Fix sizeof bug in HTTPUpload::SendRequest
A=Himanshu <only4coding@gmail.com> R=ted at https://bugzilla.mozilla.org/show_bug.cgi?id=710993 git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@992 4c0a9323-5329-0410-9bdc-e9ce6186880e
Diffstat (limited to 'src/common/windows')
-rw-r--r--src/common/windows/http_upload.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/windows/http_upload.cc b/src/common/windows/http_upload.cc
index ddf61f7f..aabb9a46 100644
--- a/src/common/windows/http_upload.cc
+++ b/src/common/windows/http_upload.cc
@@ -152,14 +152,14 @@ bool HTTPUpload::SendRequest(const wstring &url,
if (!InternetSetOption(request.get(),
INTERNET_OPTION_SEND_TIMEOUT,
timeout,
- sizeof(timeout))) {
+ sizeof(*timeout))) {
fwprintf(stderr, L"Could not unset send timeout, continuing...\n");
}
if (!InternetSetOption(request.get(),
INTERNET_OPTION_RECEIVE_TIMEOUT,
timeout,
- sizeof(timeout))) {
+ sizeof(*timeout))) {
fwprintf(stderr, L"Could not unset receive timeout, continuing...\n");
}
}