Juan Lang : wininet: Don't assume lpBuffersIn is not NULL.
Module: wine Branch: master Commit: d857c04c95d6441e2c422161b6af3fb4b4be5275 URL: http://source.winehq.org/git/wine.git/?a=commit;h=d857c04c95d6441e2c422161b6... Author: Juan Lang <juan.lang(a)gmail.com> Date: Mon Oct 22 10:23:54 2007 -0700 wininet: Don't assume lpBuffersIn is not NULL. --- dlls/wininet/http.c | 9 ++++++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --git a/dlls/wininet/http.c b/dlls/wininet/http.c index 70239f7..f496733 100644 --- a/dlls/wininet/http.c +++ b/dlls/wininet/http.c @@ -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);
participants (1)
-
Alexandre Julliard