wininet: Don't assume lpBuffersIn is not NULL.
This commit is contained in:
parent
1b42c00789
commit
d857c04c95
|
@ -2182,9 +2182,12 @@ BOOL WINAPI HttpSendRequestExW(HINTERNET hRequest,
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
if (lpBuffersIn)
|
||||||
ret = HTTP_HttpSendRequestW(lpwhr, lpBuffersIn->lpcszHeader, lpBuffersIn->dwHeadersLength,
|
ret = HTTP_HttpSendRequestW(lpwhr, lpBuffersIn->lpcszHeader, lpBuffersIn->dwHeadersLength,
|
||||||
lpBuffersIn->lpvBuffer, lpBuffersIn->dwBufferLength,
|
lpBuffersIn->lpvBuffer, lpBuffersIn->dwBufferLength,
|
||||||
lpBuffersIn->dwBufferTotal, FALSE);
|
lpBuffersIn->dwBufferTotal, FALSE);
|
||||||
|
else
|
||||||
|
ret = HTTP_HttpSendRequestW(lpwhr, NULL, 0, NULL, 0, 0, FALSE);
|
||||||
}
|
}
|
||||||
|
|
||||||
WININET_Release(&lpwhr->hdr);
|
WININET_Release(&lpwhr->hdr);
|
||||||
|
|
Loading…
Reference in New Issue