[RTL]
authorThomas Faber <thomas.faber@reactos.org>
Wed, 22 Aug 2012 11:35:19 +0000 (11:35 +0000)
committerThomas Faber <thomas.faber@reactos.org>
Wed, 22 Aug 2012 11:35:19 +0000 (11:35 +0000)
- Check the correct return status in RtlCreateUserProcess (CID 715961)

svn path=/trunk/; revision=57128

reactos/lib/rtl/process.c

index 6df7082..0dd6037 100644 (file)
@@ -203,7 +203,7 @@ RtlCreateUserProcess(IN PUNICODE_STRING ImageFileName,
     Status = RtlpMapFile(ImageFileName,
                          Attributes,
                          &hSection);
-    if(!NT_SUCCESS(Status))
+    if (!NT_SUCCESS(Status))
     {
         DPRINT1("Could not map process image\n");
         return Status;
@@ -263,11 +263,11 @@ RtlCreateUserProcess(IN PUNICODE_STRING ImageFileName,
     }
 
     /* Get some information about the process */
-    ZwQueryInformationProcess(ProcessInfo->ProcessHandle,
-                              ProcessBasicInformation,
-                              &ProcessBasicInfo,
-                              sizeof(ProcessBasicInfo),
-                              NULL);
+    Status = ZwQueryInformationProcess(ProcessInfo->ProcessHandle,
+                                       ProcessBasicInformation,
+                                       &ProcessBasicInfo,
+                                       sizeof(ProcessBasicInfo),
+                                       NULL);
     if (!NT_SUCCESS(Status))
     {
         DPRINT1("Could not query Process Info\n");