Author: aandrejevic
Date: Fri May 2 01:18:46 2014
New Revision: 63099
URL:
http://svn.reactos.org/svn/reactos?rev=63099&view=rev
Log:
[BASESRV]
Make sure that the console record exists before continuing.
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/vd…
==============================================================================
--- branches/ntvdm/subsystems/win/basesrv/vdm.c [iso-8859-1] (original)
+++ branches/ntvdm/subsystems/win/basesrv/vdm.c [iso-8859-1] Fri May 2 01:18:46 2014
@@ -901,6 +901,13 @@
&ConsoleRecord);
}
+ /* Make sure we found the console record */
+ if (!NT_SUCCESS(Status))
+ {
+ Status = STATUS_INVALID_PARAMETER;
+ goto Cleanup;
+ }
+
/* Return the session ID */
GetNextVdmCommandRequest->iTask = ConsoleRecord->SessionId;
GetNextVdmCommandRequest->WaitObjectForVDM = NULL;