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
|
||||
{
|
||||
ret = HTTP_HttpSendRequestW(lpwhr, lpBuffersIn->lpcszHeader, lpBuffersIn->dwHeadersLength,
|
||||
lpBuffersIn->lpvBuffer, lpBuffersIn->dwBufferLength,
|
||||
lpBuffersIn->dwBufferTotal, FALSE);
|
||||
if (lpBuffersIn)
|
||||
ret = HTTP_HttpSendRequestW(lpwhr, lpBuffersIn->lpcszHeader, lpBuffersIn->dwHeadersLength,
|
||||
lpBuffersIn->lpvBuffer, lpBuffersIn->dwBufferLength,
|
||||
lpBuffersIn->dwBufferTotal, FALSE);
|
||||
else
|
||||
ret = HTTP_HttpSendRequestW(lpwhr, NULL, 0, NULL, 0, 0, FALSE);
|
||||
}
|
||||
|
||||
WININET_Release(&lpwhr->hdr);
|
||||
|
|
Loading…
Reference in New Issue