Author: janderwald
Date: Tue Jul 18 17:45:37 2006
New Revision: 23143
URL:
http://svn.reactos.org/svn/reactos?rev=23143&view=rev
Log:
* check parameters
Modified:
trunk/reactos/subsystems/win32/win32k/ntuser/accelerator.c
Modified: trunk/reactos/subsystems/win32/win32k/ntuser/accelerator.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntuser/accelerator.c (original)
+++ trunk/reactos/subsystems/win32/win32k/ntuser/accelerator.c Tue Jul 18 17:45:37 2006
@@ -344,6 +344,11 @@
Entries, EntriesCount);
UserEnterExclusive();
+ if (!Entries || !EntriesCount)
+ {
+ RETURN( (HACCEL) 0 );
+ }
+
Accel = ObmCreateObject(gHandleTable, (PHANDLE)&hAccel, otAccel,
sizeof(ACCELERATOR_TABLE));
if (Accel == NULL)