Misha Koshelev : wininet: Send INTERNET_STATUS_HANDLE_CLOSING when object is being destroyed as native does .
Module: wine Branch: master Commit: 2f3805a3bd27305e64e92bc3b828ab272a35a6ac URL: http://source.winehq.org/git/wine.git/?a=commit;h=2f3805a3bd27305e64e92bc3b8... Author: Misha Koshelev <mk144210(a)bcm.edu> Date: Thu Aug 23 00:06:26 2007 -0500 wininet: Send INTERNET_STATUS_HANDLE_CLOSING when object is being destroyed as native does. --- dlls/wininet/internet.c | 9 +++------ 1 files changed, 3 insertions(+), 6 deletions(-) diff --git a/dlls/wininet/internet.c b/dlls/wininet/internet.c index 4886f7c..9355500 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 );
participants (1)
-
Alexandre Julliard