Paul TBBle Hampson : winhttp: Don't try and call a null callback.
Alexandre Julliard
julliard at winehq.org
Wed Dec 31 07:45:19 CST 2008
Module: wine
Branch: master
Commit: 04b8ec07a6e9c5888bc306939eaffdfa549580e1
URL: http://source.winehq.org/git/wine.git/?a=commit;h=04b8ec07a6e9c5888bc306939eaffdfa549580e1
Author: Paul TBBle Hampson <Paul.Hampson at Pobox.com>
Date: Wed Dec 31 18:59:02 2008 +1100
winhttp: Don't try and call a null callback.
---
dlls/winhttp/session.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/winhttp/session.c b/dlls/winhttp/session.c
index db4ce03..11c4b4f 100644
--- a/dlls/winhttp/session.c
+++ b/dlls/winhttp/session.c
@@ -47,7 +47,7 @@ void send_callback( object_header_t *hdr, DWORD status, LPVOID info, DWORD bufle
{
TRACE("%p, 0x%08x, %p, %u\n", hdr, status, info, buflen);
- if (hdr->notify_mask & status) hdr->callback( hdr->handle, hdr->context, status, info, buflen );
+ if (hdr->callback && (hdr->notify_mask & status)) hdr->callback( hdr->handle, hdr->context, status, info, buflen );
}
/***********************************************************************
More information about the wine-cvs
mailing list