Commit 16bd9d53 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

ole32: Avoid uninitialized value to be potentialy passed to UnhookWindowsHookEx.

parent d819f139
...@@ -1197,6 +1197,7 @@ static BOOL OLEMenu_InstallHooks( DWORD tid ) ...@@ -1197,6 +1197,7 @@ static BOOL OLEMenu_InstallHooks( DWORD tid )
pHookItem->tid = tid; pHookItem->tid = tid;
pHookItem->hHeap = GetProcessHeap(); pHookItem->hHeap = GetProcessHeap();
pHookItem->CallWndProc_hHook = NULL;
/* Install a thread scope message hook for WH_GETMESSAGE */ /* Install a thread scope message hook for WH_GETMESSAGE */
pHookItem->GetMsg_hHook = SetWindowsHookExW( WH_GETMESSAGE, OLEMenu_GetMsgProc, pHookItem->GetMsg_hHook = SetWindowsHookExW( WH_GETMESSAGE, OLEMenu_GetMsgProc,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment