Fixed warnings.

This commit is contained in:
Alexandre Julliard 2002-12-17 21:03:33 +00:00
parent 66da6c85e8
commit 3121fdac41

View File

@ -85,7 +85,7 @@ void winapi_test(int flags)
DWORD length; DWORD length;
DWORD out; DWORD out;
const char *types[2] = { "*", NULL }; const char *types[2] = { "*", NULL };
HINTERNET hi,hic,hor; HINTERNET hi, hic = 0, hor = 0;
trace("Starting with flags 0x%x\n",flags); trace("Starting with flags 0x%x\n",flags);
@ -190,7 +190,7 @@ abort:
rc = InternetCloseHandle(hor); rc = InternetCloseHandle(hor);
ok ((rc != 0), "InternetCloseHandle of handle opened by HttpOpenRequestA failed"); ok ((rc != 0), "InternetCloseHandle of handle opened by HttpOpenRequestA failed");
} }
if (hor != 0x0) { if (hic != 0x0) {
rc = InternetCloseHandle(hic); rc = InternetCloseHandle(hic);
ok ((rc != 0), "InternetCloseHandle of handle opened by InternetConnectA failed"); ok ((rc != 0), "InternetCloseHandle of handle opened by InternetConnectA failed");
} }