[PATCH] Avoid uninitialized value to be potentialy passed to UnhookWindowsHookEx
Nikolay Sivov
nsivov at codeweavers.com
Tue Apr 27 14:45:07 CDT 2010
---
dlls/ole32/ole2.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/dlls/ole32/ole2.c b/dlls/ole32/ole2.c
index 6c0f8c1..0bb7437 100644
--- a/dlls/ole32/ole2.c
+++ b/dlls/ole32/ole2.c
@@ -1197,6 +1197,7 @@ static BOOL OLEMenu_InstallHooks( DWORD tid )
pHookItem->tid = tid;
pHookItem->hHeap = GetProcessHeap();
+ pHookItem->CallWndProc_hHook = NULL;
/* Install a thread scope message hook for WH_GETMESSAGE */
pHookItem->GetMsg_hHook = SetWindowsHookExW( WH_GETMESSAGE, OLEMenu_GetMsgProc,
--
1.5.6.5
--=-YOvRnmCiDa9Bl8hBPF2r--
More information about the wine-patches
mailing list