Juan Lang : wininet: Don't assume lpBuffersIn is not NULL.

Alexandre Julliard julliard at winehq.org
Tue Oct 23 13:14:32 CDT 2007


Module: wine
Branch: master
Commit: d857c04c95d6441e2c422161b6af3fb4b4be5275
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=d857c04c95d6441e2c422161b6af3fb4b4be5275

Author: Juan Lang <juan.lang at 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);




More information about the wine-cvs mailing list