mirror of
https://github.com/reactos/reactos.git
synced 2025-07-27 19:12:12 +00:00
* check parameters
svn path=/trunk/; revision=23143
This commit is contained in:
parent
78bc2ae282
commit
72301905a6
1 changed files with 5 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue