[BASESRV]
authorAleksandar Andrejevic <aandrejevic@reactos.org>
Fri, 2 May 2014 01:20:40 +0000 (01:20 +0000)
committerAleksandar Andrejevic <aandrejevic@reactos.org>
Fri, 2 May 2014 01:20:40 +0000 (01:20 +0000)
Fix the previous fix. It's not necessary to use a different status value from the one that was returned.

svn path=/branches/ntvdm/; revision=63100

subsystems/win/basesrv/vdm.c

index 409a801..a3c345f 100644 (file)
@@ -902,11 +902,7 @@ CSR_API(BaseSrvGetNextVDMCommand)
         }
 
         /* Make sure we found the console record */
         }
 
         /* Make sure we found the console record */
-        if (!NT_SUCCESS(Status))
-        {
-            Status = STATUS_INVALID_PARAMETER;
-            goto Cleanup;
-        }
+        if (!NT_SUCCESS(Status)) goto Cleanup;
 
         /* Return the session ID */
         GetNextVdmCommandRequest->iTask = ConsoleRecord->SessionId;
 
         /* Return the session ID */
         GetNextVdmCommandRequest->iTask = ConsoleRecord->SessionId;