Marcus Meissner : winhttp: On NULL request, skip the other tests (Coverity) .
Module: wine Branch: master Commit: a01d39215345711c217f2cd02504212c3468c1c7 URL: http://source.winehq.org/git/wine.git/?a=commit;h=a01d39215345711c217f2cd025... Author: Marcus Meissner <marcus(a)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));
participants (1)
-
Alexandre Julliard