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

This commit is contained in:
Marcus Meissner 2010-01-27 20:59:03 +01:00 committed by Alexandre Julliard
parent a3e1a6f2ee
commit a01d392153
1 changed files with 1 additions and 0 deletions

View File

@ -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));