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

This commit is contained in:
Misha Koshelev 2007-08-23 00:06:26 -05:00 committed by Alexandre Julliard
parent 0f117e568f
commit 2f3805a3bd
1 changed files with 3 additions and 6 deletions

View File

@ -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 );