[WININET] Fix crash in Ragnarok Online patcher.
Lionel Ulmer
lionel.ulmer at free.fr
Sat Feb 14 10:54:36 CST 2004
Changelog:
Store pointers in the internal structures and not handles.
--
Lionel Ulmer - http://www.bbrox.org/
-------------- next part --------------
Index: dlls/wininet/ftp.c
===================================================================
RCS file: /home/wine/wine/dlls/wininet/ftp.c,v
retrieving revision 1.37
diff -u -r1.37 ftp.c
--- dlls/wininet/ftp.c 9 Feb 2004 22:07:43 -0000 1.37
+++ dlls/wininet/ftp.c 14 Feb 2004 16:52:48 -0000
@@ -1558,7 +1558,7 @@
lpwfs->hdr.htype = WH_HFTPSESSION;
lpwfs->hdr.dwFlags = dwFlags;
lpwfs->hdr.dwContext = dwContext;
- lpwfs->hdr.lpwhparent = (LPWININETHANDLEHEADER)hInternet;
+ lpwfs->hdr.lpwhparent = &hIC->hdr;
lpwfs->sndSocket = nsocket;
lpwfs->download_in_progress = NULL;
sock_namelen = sizeof(lpwfs->socketAddress);
@@ -2543,7 +2543,7 @@
if( handle )
{
lpwfn->hdr.htype = WH_HFINDNEXT;
- lpwfn->hdr.lpwhparent = (LPWININETHANDLEHEADER)lpwfs;
+ lpwfn->hdr.lpwhparent = &lpwfs->hdr;
lpwfn->hdr.dwContext = dwContext;
lpwfn->index = 1; /* Next index is 1 since we return index 0 */
lpwfn->size = dwSize;
More information about the wine-patches
mailing list