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

This commit is contained in:
Nikolay Sivov 2010-04-27 23:45:07 +04:00 committed by Alexandre Julliard
parent d819f13911
commit 16bd9d53b9
1 changed files with 1 additions and 0 deletions

View File

@ -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,