urlmon: Use InternetCloseHandle instead of CloseHandle.

This commit is contained in:
Misha Koshelev 2007-07-18 19:58:15 -05:00 committed by Alexandre Julliard
parent 442ec6acdd
commit c2534d0cd6
1 changed files with 13 additions and 3 deletions

View File

@ -147,10 +147,20 @@ static void HTTPPROTOCOL_Close(HttpProtocol *This)
This->http_negotiate = 0;
}
if (This->request)
{
InternetCloseHandle(This->request);
CloseHandle(This->connect);
CloseHandle(This->internet);
This->request = This->connect = This->internet = 0;
This->request = 0;
}
if (This->connect)
{
InternetCloseHandle(This->connect);
This->connect = 0;
}
if (This->internet)
{
InternetCloseHandle(This->internet);
This->internet = 0;
}
This->flags = 0;
}