mirror of
https://github.com/reactos/reactos.git
synced 2026-06-21 20:22:48 +08:00
Fix using a pointer to a temporary variable outside it's scope in RtlCreateUserProcess
svn path=/trunk/; revision=24849
This commit is contained in:
@@ -195,6 +195,7 @@ RtlCreateUserProcess(IN PUNICODE_STRING ImageFileName,
|
||||
HANDLE hSection;
|
||||
PROCESS_BASIC_INFORMATION ProcessBasicInfo;
|
||||
OBJECT_ATTRIBUTES ObjectAttributes;
|
||||
UNICODE_STRING DebugString = RTL_CONSTANT_STRING(L"\\WindowsSS");;
|
||||
DPRINT("RtlCreateUserProcess: %wZ\n", ImageFileName);
|
||||
|
||||
/* Map and Load the File */
|
||||
@@ -227,12 +228,7 @@ RtlCreateUserProcess(IN PUNICODE_STRING ImageFileName,
|
||||
if ((RtlGetNtGlobalFlags() & FLG_ENABLE_CSRDEBUG) &&
|
||||
(wcsstr(ImageFileName->Buffer, L"csrss")))
|
||||
{
|
||||
UNICODE_STRING DebugString = RTL_CONSTANT_STRING(L"\\WindowsSS");
|
||||
InitializeObjectAttributes(&ObjectAttributes,
|
||||
&DebugString,
|
||||
0,
|
||||
NULL,
|
||||
ProcessSecurityDescriptor);
|
||||
ObjectAttributes.ObjectName = &DebugString;
|
||||
}
|
||||
|
||||
/* Create Kernel Process Object */
|
||||
|
||||
Reference in New Issue
Block a user