RtlCreateUserProcess was not checking for failure of mapping the executable file...
authorPhillip Susi <phreak@iag.net>
Sat, 9 Dec 2000 04:34:52 +0000 (04:34 +0000)
committerPhillip Susi <phreak@iag.net>
Sat, 9 Dec 2000 04:34:52 +0000 (04:34 +0000)
svn path=/trunk/; revision=1460

reactos/lib/ntdll/rtl/process.c

index 9772cb2..2ca64cd 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: process.c,v 1.21 2000/10/08 16:32:52 dwelch Exp $
+/* $Id: process.c,v 1.22 2000/12/09 04:34:52 phreak Exp $
  *
  * COPYRIGHT:       See COPYING in the top level directory
  * PROJECT:         ReactOS system libraries
@@ -312,7 +312,8 @@ RtlCreateUserProcess (
    Status = RtlpMapFile(Ppb,
                        &hSection,
                        ImageFileName);
-   
+   if( !NT_SUCCESS( Status ) )
+     return Status;
    /*
     * Create a new process
     */