mirror of
https://github.com/yuzu-emu/breakpad.git
synced 2025-02-02 15:51:00 +00:00
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
This commit is contained in:
parent
da1568ac03
commit
cd77197264
|
@ -152,14 +152,14 @@ bool HTTPUpload::SendRequest(const wstring &url,
|
||||||
if (!InternetSetOption(request.get(),
|
if (!InternetSetOption(request.get(),
|
||||||
INTERNET_OPTION_SEND_TIMEOUT,
|
INTERNET_OPTION_SEND_TIMEOUT,
|
||||||
timeout,
|
timeout,
|
||||||
sizeof(timeout))) {
|
sizeof(*timeout))) {
|
||||||
fwprintf(stderr, L"Could not unset send timeout, continuing...\n");
|
fwprintf(stderr, L"Could not unset send timeout, continuing...\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!InternetSetOption(request.get(),
|
if (!InternetSetOption(request.get(),
|
||||||
INTERNET_OPTION_RECEIVE_TIMEOUT,
|
INTERNET_OPTION_RECEIVE_TIMEOUT,
|
||||||
timeout,
|
timeout,
|
||||||
sizeof(timeout))) {
|
sizeof(*timeout))) {
|
||||||
fwprintf(stderr, L"Could not unset receive timeout, continuing...\n");
|
fwprintf(stderr, L"Could not unset receive timeout, continuing...\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue