Pass the address of the handle rather than just the handle to fix a
authorRobert Shearman <rob@codeweavers.com>
Fri, 19 Nov 2004 17:54:48 +0000 (17:54 +0000)
committerAlexandre Julliard <julliard@winehq.org>
Fri, 19 Nov 2004 17:54:48 +0000 (17:54 +0000)
crash with IE.

dlls/wininet/internet.c

index 3b6407e174012261ddf8f7c44a38c53c359f67d4..abc3266c9a6c65b9e95a73b8b5d62422e0a483e6 100644 (file)
@@ -997,8 +997,8 @@ BOOL WINAPI InternetCloseHandle(HINTERNET hInternet)
     }
 
     SendAsyncCallback(lpwh, lpwh->dwContext,
-                      INTERNET_STATUS_HANDLE_CLOSING, hInternet,
-                      sizeof(HINTERNET));
+                      INTERNET_STATUS_HANDLE_CLOSING, &hInternet,
+                      sizeof(HINTERNET*));
 
     if( lpwh->lpwhparent )
         WININET_Release( lpwh->lpwhparent );