Author: fireball
Date: Thu Jan 27 10:52:59 2011
New Revision: 50510
URL:
http://svn.reactos.org/svn/reactos?rev=50510&view=rev
Log:
- Fix "Not enough hook windows array size" debug print.
Modified:
branches/arwinss/reactos/dll/win32/user32/hook.c
Modified: branches/arwinss/reactos/dll/win32/user32/hook.c
URL:
http://svn.reactos.org/svn/reactos/branches/arwinss/reactos/dll/win32/user3…
==============================================================================
--- branches/arwinss/reactos/dll/win32/user32/hook.c [iso-8859-1] (original)
+++ branches/arwinss/reactos/dll/win32/user32/hook.c [iso-8859-1] Thu Jan 27 10:52:59
2011
@@ -419,7 +419,8 @@
UINT cbListSize = sizeof(hook_windows);
if (!RosUserBuildShellHookHwndList(hook_windows, &cbListSize))
{
- ERR("Not enough hook windows array size!\n");
+ if (cbListSize > sizeof(hook_windows)) ERR("Not enough hook windows
array size!\n");
+ /* otherwise the list is just empty */
}
else
{