mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-03 04:13:31 +00:00
[BASESRV]
Don't accept NULL as a valid console handle. svn path=/branches/ntvdm/; revision=63122
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user