Only call wininet callbacks if dwContext is non-zero.

This commit is contained in:
Mike McCormack 2003-07-18 22:59:25 +00:00 committed by Alexandre Julliard
parent b2b8a0d164
commit dce0829913

View file

@ -175,6 +175,11 @@ VOID SendAsyncCallbackInt(LPWININETAPPINFOA hIC, HINTERNET hHttpSession,
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,