Author: tfaber
Date: Wed Aug 22 11:35:19 2012
New Revision: 57128
URL:
http://svn.reactos.org/svn/reactos?rev=57128&view=rev
Log:
[RTL]
- Check the correct return status in RtlCreateUserProcess (CID 715961)
Modified:
trunk/reactos/lib/rtl/process.c
Modified: trunk/reactos/lib/rtl/process.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/rtl/process.c?rev=5712…
==============================================================================
--- trunk/reactos/lib/rtl/process.c [iso-8859-1] (original)
+++ trunk/reactos/lib/rtl/process.c [iso-8859-1] Wed Aug 22 11:35:19 2012
@@ -203,7 +203,7 @@
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 @@
}
/* 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");