From 01de104a75737887837154712c309860bcbc7a52 Mon Sep 17 00:00:00 2001 From: Misha Koshelev Date: Thu, 20 Sep 2007 21:00:38 -0500 Subject: [PATCH] wininet/tests: Add test to show that InternetCloseHandle closes open child handles too. --- dlls/wininet/tests/http.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dlls/wininet/tests/http.c b/dlls/wininet/tests/http.c index 10406894212..589fe8a4d58 100644 --- a/dlls/wininet/tests/http.c +++ b/dlls/wininet/tests/http.c @@ -447,10 +447,10 @@ abort: "Double close of handle should have set ERROR_INVALID_HANDLE instead of %u\n", GetLastError()); } - if (hic != 0x0) { - rc = InternetCloseHandle(hic); - ok ((rc != 0), "InternetCloseHandle of handle opened by InternetConnectA failed\n"); - } + /* We intentionally do not close the handle opened by InternetConnectA as this + * tickles bug #9479: native closes child internet handles when the parent handles + * are closed. This is verified below by checking that the number of + * INTERNET_STATUS_HANDLE_CLOSING notifications matches the number expected. */ if (hi != 0x0) { SET_WINE_ALLOW(INTERNET_STATUS_HANDLE_CLOSING); rc = InternetCloseHandle(hi);