mirror of
https://github.com/reactos/reactos.git
synced 2024-08-19 18:02:55 +00:00
[user32]
- Always call EndUserApiHook if BeginIfHookedUserApiHook returned true svn path=/branches/GSoC_2011/ThemesSupport/; revision=52948
This commit is contained in:
parent
9519ff7b12
commit
4c2f096717
|
@ -2213,7 +2213,13 @@ DefWindowProcA(HWND hWnd,
|
||||||
|
|
||||||
Hook = BeginIfHookedUserApiHook();
|
Hook = BeginIfHookedUserApiHook();
|
||||||
if (Hook)
|
if (Hook)
|
||||||
|
{
|
||||||
msgOverride = IsMsgOverride(Msg, &guah.DefWndProcArray);
|
msgOverride = IsMsgOverride(Msg, &guah.DefWndProcArray);
|
||||||
|
if(msgOverride == FALSE)
|
||||||
|
{
|
||||||
|
EndUserApiHook();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* Bypass SEH and go direct. */
|
/* Bypass SEH and go direct. */
|
||||||
if (!Hook || !msgOverride)
|
if (!Hook || !msgOverride)
|
||||||
|
@ -2246,7 +2252,13 @@ DefWindowProcW(HWND hWnd,
|
||||||
|
|
||||||
Hook = BeginIfHookedUserApiHook();
|
Hook = BeginIfHookedUserApiHook();
|
||||||
if (Hook)
|
if (Hook)
|
||||||
|
{
|
||||||
msgOverride = IsMsgOverride(Msg, &guah.DefWndProcArray);
|
msgOverride = IsMsgOverride(Msg, &guah.DefWndProcArray);
|
||||||
|
if(msgOverride == FALSE)
|
||||||
|
{
|
||||||
|
EndUserApiHook();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* Bypass SEH and go direct. */
|
/* Bypass SEH and go direct. */
|
||||||
if (!Hook || !msgOverride)
|
if (!Hook || !msgOverride)
|
||||||
|
|
Loading…
Reference in a new issue