Don't accept NULL as a valid console handle.
svn path=/branches/ntvdm/; revision=63122
PLIST_ENTRY i;
PVDM_CONSOLE_RECORD CurrentRecord = NULL;
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)
{
/* Search for a record that has the same console handle */
for (i = VDMConsoleListHead.Flink; i != &VDMConsoleListHead; i = i->Flink)
{