wininet/tests: Fix resource leak.

Signed-off-by: Andrey Gusev <andrey.goosev@gmail.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Andrey Gusev 2018-01-05 14:38:37 +02:00 committed by Alexandre Julliard
parent 67e80856e6
commit dc9088b9eb
1 changed files with 3 additions and 0 deletions

View File

@ -5459,7 +5459,10 @@ static void test_http_connection(void)
r = WaitForSingleObject(si.hEvent, 10000);
ok (r == WAIT_OBJECT_0, "failed to start wininet test server\n");
if (r != WAIT_OBJECT_0)
{
CloseHandle(hThread);
return;
}
test_basic_request(si.port, "GET", "/test1");
test_proxy_indirect(si.port);