Commit 2f3805a3 authored by Misha Koshelev's avatar Misha Koshelev Committed by Alexandre Julliard

wininet: Send INTERNET_STATUS_HANDLE_CLOSING when object is being destroyed as native does.

parent 0f117e56
......@@ -178,6 +178,9 @@ BOOL WININET_Release( LPWININETHANDLEHEADER info )
TRACE( "closing connection %p\n", info);
info->close_connection( info );
}
INTERNET_SendCallback(info, info->dwContext,
INTERNET_STATUS_HANDLE_CLOSING, &info->hInternet,
sizeof(HINTERNET));
TRACE( "destroying object %p\n", info);
info->destroy( info );
}
......@@ -990,12 +993,6 @@ BOOL WINAPI InternetCloseHandle(HINTERNET hInternet)
return FALSE;
}
/* FIXME: native appears to send this from the equivalent of
* WININET_Release */
INTERNET_SendCallback(lpwh, lpwh->dwContext,
INTERNET_STATUS_HANDLE_CLOSING, &hInternet,
sizeof(HINTERNET));
WININET_FreeHandle( hInternet );
WININET_Release( lpwh );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment