wininet/tests: Add test to show that InternetCloseHandle closes open child handles too.
This commit is contained in:
parent
728e5fa559
commit
01de104a75
|
@ -447,10 +447,10 @@ abort:
|
||||||
"Double close of handle should have set ERROR_INVALID_HANDLE instead of %u\n",
|
"Double close of handle should have set ERROR_INVALID_HANDLE instead of %u\n",
|
||||||
GetLastError());
|
GetLastError());
|
||||||
}
|
}
|
||||||
if (hic != 0x0) {
|
/* We intentionally do not close the handle opened by InternetConnectA as this
|
||||||
rc = InternetCloseHandle(hic);
|
* tickles bug #9479: native closes child internet handles when the parent handles
|
||||||
ok ((rc != 0), "InternetCloseHandle of handle opened by InternetConnectA failed\n");
|
* are closed. This is verified below by checking that the number of
|
||||||
}
|
* INTERNET_STATUS_HANDLE_CLOSING notifications matches the number expected. */
|
||||||
if (hi != 0x0) {
|
if (hi != 0x0) {
|
||||||
SET_WINE_ALLOW(INTERNET_STATUS_HANDLE_CLOSING);
|
SET_WINE_ALLOW(INTERNET_STATUS_HANDLE_CLOSING);
|
||||||
rc = InternetCloseHandle(hi);
|
rc = InternetCloseHandle(hi);
|
||||||
|
|
Loading…
Reference in New Issue