diff --git a/dlls/wininet/internet.c b/dlls/wininet/internet.c index 4886f7c113e..9355500c220 100644 --- a/dlls/wininet/internet.c +++ b/dlls/wininet/internet.c @@ -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 );