Author: gadamopoulos
Date: Thu Jul 28 12:23:42 2011
New Revision: 52948
URL:
http://svn.reactos.org/svn/reactos?rev=52948&view=rev
Log:
[user32]
- Always call EndUserApiHook if BeginIfHookedUserApiHook returned true
Modified:
branches/GSoC_2011/ThemesSupport/dll/win32/user32/windows/defwnd.c
Modified: branches/GSoC_2011/ThemesSupport/dll/win32/user32/windows/defwnd.c
URL:
http://svn.reactos.org/svn/reactos/branches/GSoC_2011/ThemesSupport/dll/win…
==============================================================================
--- branches/GSoC_2011/ThemesSupport/dll/win32/user32/windows/defwnd.c [iso-8859-1]
(original)
+++ branches/GSoC_2011/ThemesSupport/dll/win32/user32/windows/defwnd.c [iso-8859-1] Thu
Jul 28 12:23:42 2011
@@ -2213,7 +2213,13 @@
Hook = BeginIfHookedUserApiHook();
if (Hook)
+ {
msgOverride = IsMsgOverride(Msg, &guah.DefWndProcArray);
+ if(msgOverride == FALSE)
+ {
+ EndUserApiHook();
+ }
+ }
/* Bypass SEH and go direct. */
if (!Hook || !msgOverride)
@@ -2246,7 +2252,13 @@
Hook = BeginIfHookedUserApiHook();
if (Hook)
+ {
msgOverride = IsMsgOverride(Msg, &guah.DefWndProcArray);
+ if(msgOverride == FALSE)
+ {
+ EndUserApiHook();
+ }
+ }
/* Bypass SEH and go direct. */
if (!Hook || !msgOverride)