mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 16:36:33 +00:00
[BASESRV]
Don't accept NULL as a valid console handle. svn path=/branches/ntvdm/; revision=63122
This commit is contained in:
parent
9b7d069e2e
commit
9eeef92b34
1 changed files with 3 additions and 0 deletions
|
@ -29,6 +29,9 @@ NTSTATUS NTAPI BaseSrvGetConsoleRecord(HANDLE ConsoleHandle, PVDM_CONSOLE_RECORD
|
|||
PLIST_ENTRY i;
|
||||
PVDM_CONSOLE_RECORD CurrentRecord = NULL;
|
||||
|
||||
/* NULL is not a valid console handle */
|
||||
if (ConsoleHandle == NULL) return STATUS_INVALID_PARAMETER;
|
||||
|
||||
/* Search for a record that has the same console handle */
|
||||
for (i = VDMConsoleListHead.Flink; i != &VDMConsoleListHead; i = i->Flink)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue