* check parameters

svn path=/trunk/; revision=23143
This commit is contained in:
Johannes Anderwald 2006-07-18 13:45:37 +00:00
parent 78bc2ae282
commit 72301905a6

View file

@ -344,6 +344,11 @@ NtUserCreateAcceleratorTable(
Entries, EntriesCount);
UserEnterExclusive();
if (!Entries || !EntriesCount)
{
RETURN( (HACCEL) 0 );
}
Accel = ObmCreateObject(gHandleTable, (PHANDLE)&hAccel, otAccel, sizeof(ACCELERATOR_TABLE));
if (Accel == NULL)