mirror of
https://github.com/reactos/reactos.git
synced 2024-07-04 19:54:58 +00:00
* check parameters
svn path=/trunk/; revision=23143
This commit is contained in:
parent
78bc2ae282
commit
72301905a6
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue