Author: aandrejevic Date: Fri May 2 23:00:10 2014 New Revision: 63122
URL: http://svn.reactos.org/svn/reactos?rev=63122&view=rev Log: [BASESRV] Don't accept NULL as a valid console handle.
Modified: branches/ntvdm/subsystems/win/basesrv/vdm.c
Modified: branches/ntvdm/subsystems/win/basesrv/vdm.c URL: http://svn.reactos.org/svn/reactos/branches/ntvdm/subsystems/win/basesrv/vdm... ============================================================================== --- branches/ntvdm/subsystems/win/basesrv/vdm.c [iso-8859-1] (original) +++ branches/ntvdm/subsystems/win/basesrv/vdm.c [iso-8859-1] Fri May 2 23:00:10 2014 @@ -28,6 +28,9 @@ { 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)