Marcus Meissner : winhttp: On NULL request, skip the other tests (Coverity) .

Alexandre Julliard julliard at winehq.org
Thu Jan 28 11:15:33 CST 2010


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

Author: Marcus Meissner <marcus at jet.franken.de>
Date:   Wed Jan 27 20:59:03 2010 +0100

winhttp: On NULL request, skip the other tests (Coverity).

---

 dlls/winhttp/tests/winhttp.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/dlls/winhttp/tests/winhttp.c b/dlls/winhttp/tests/winhttp.c
index 4a4e7f4..f0b46b6 100644
--- a/dlls/winhttp/tests/winhttp.c
+++ b/dlls/winhttp/tests/winhttp.c
@@ -283,6 +283,7 @@ static void test_SendRequest (void)
         goto done;
     }
     ok(request != NULL, "WinHttpOpenrequest failed to open a request, error: %u.\n", GetLastError());
+    if (!request) goto done;
 
     context = 0xdeadbeef;
     ret = WinHttpSetOption(request, WINHTTP_OPTION_CONTEXT_VALUE, &context, sizeof(context));




More information about the wine-cvs mailing list