[PATCH] urlmon: seperate NULL ptr check (Coverity 924)
Marcus Meissner
marcus at jet.franken.de
Fri May 15 02:44:34 CDT 2009
Hi,
seperate the NULL ptr check to avoid NULL ptr dereference.
Ciao, Marcus
---
dlls/urlmon/bindprot.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/dlls/urlmon/bindprot.c b/dlls/urlmon/bindprot.c
index d431095..7231ae6 100644
--- a/dlls/urlmon/bindprot.c
+++ b/dlls/urlmon/bindprot.c
@@ -171,7 +171,10 @@ void release_notif_hwnd(HWND hwnd)
{
tls_data_t *data = get_tls_data();
- if(!data || data->notif_hwnd != hwnd) {
+ if(!data)
+ return;
+
+ if(data->notif_hwnd != hwnd) {
PostMessageW(data->notif_hwnd, WM_MK_RELEASE, 0, 0);
return;
}
--
1.5.6
More information about the wine-patches
mailing list