wininet: Send INTERNET_STATUS_HANDLE_CLOSING when object is being destroyed as native does.
This commit is contained in:
parent
0f117e568f
commit
2f3805a3bd
|
@ -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 );
|
||||
|
||||
|
|
Loading…
Reference in New Issue