Only call wininet callbacks if dwContext is non-zero

Mike McCormack mike at codeweavers.com
Thu Jul 17 13:28:34 CDT 2003


ChangeLog:
* Only call wininet callbacks if dwContext is non-zero

-------------- next part --------------
Index: dlls/wininet/utility.c
===================================================================
RCS file: /home/wine/wine/dlls/wininet/utility.c,v
retrieving revision 1.10
diff -u -r1.10 utility.c
--- dlls/wininet/utility.c	21 Jun 2002 23:59:49 -0000	1.10
+++ dlls/wininet/utility.c	17 Jul 2003 18:27:14 -0000
@@ -175,6 +175,11 @@
         if (! (hIC->lpfnStatusCB))
             return;
 
+        /* the IE5 version of wininet does not
+           send callbacks if dwContext is zero */
+        if( !dwContext )
+            return;
+
         TRACE("--> Callback %ld\n",dwInternetStatus);
 
         hIC->lpfnStatusCB(hHttpSession, dwContext, dwInternetStatus,


More information about the wine-patches mailing list