[Wininet] Fix the callback on HANDLE creation.
Lionel Ulmer
lionel.ulmer at free.fr
Sat Feb 7 08:10:38 CST 2004
This is the first in a series of patch to get a MSI-based game installer a
bit further along.
First, start by fixing some issues introduced by Mike's patch :-)
Changelog:
Report to the application real handles, not Wine internal ones.
--
Lionel Ulmer - http://www.bbrox.org/
-------------- next part --------------
? dlls/wininet/WININET_DIFF
Index: dlls/wininet/ftp.c
===================================================================
RCS file: /home/wine/wine/dlls/wininet/ftp.c,v
retrieving revision 1.35
diff -u -r1.35 ftp.c
--- dlls/wininet/ftp.c 7 Feb 2004 01:03:41 -0000 1.35
+++ dlls/wininet/ftp.c 7 Feb 2004 14:08:51 -0000
@@ -982,7 +982,7 @@
if (lpwh)
{
- iar.dwResult = (DWORD)lpwh;
+ iar.dwResult = (DWORD)handle;
iar.dwError = ERROR_SUCCESS;
hIC->lpfnStatusCB(hFtpSession, lpwfs->hdr.dwContext, INTERNET_STATUS_HANDLE_CREATED,
&iar, sizeof(INTERNET_ASYNC_RESULT));
@@ -1582,7 +1582,7 @@
{
INTERNET_ASYNC_RESULT iar;
- iar.dwResult = (DWORD)lpwfs;
+ iar.dwResult = (DWORD)handle;
iar.dwError = ERROR_SUCCESS;
hIC->lpfnStatusCB(hInternet, dwContext, INTERNET_STATUS_HANDLE_CREATED,
Index: dlls/wininet/http.c
===================================================================
RCS file: /home/wine/wine/dlls/wininet/http.c,v
retrieving revision 1.45
diff -u -r1.45 http.c
--- dlls/wininet/http.c 7 Feb 2004 01:03:41 -0000 1.45
+++ dlls/wininet/http.c 7 Feb 2004 14:08:52 -0000
@@ -679,7 +679,7 @@
{
INTERNET_ASYNC_RESULT iar;
- iar.dwResult = (DWORD)lpwhr;
+ iar.dwResult = (DWORD)handle;
iar.dwError = ERROR_SUCCESS;
SendAsyncCallback(hIC, hHttpSession, dwContext,
@@ -1626,7 +1626,7 @@
{
INTERNET_ASYNC_RESULT iar;
- iar.dwResult = (DWORD)lpwhs;
+ iar.dwResult = (DWORD)handle;
iar.dwError = ERROR_SUCCESS;
SendAsyncCallback(hIC, hInternet, dwContext,
More information about the wine-patches
mailing list