From 4e4647e5142937145f84a39f62c4cfb43efb29e2 Mon Sep 17 00:00:00 2001 From: Thomas Bluemel Date: Mon, 27 Nov 2006 14:26:48 +0000 Subject: [PATCH] Fix using a pointer to a temporary variable outside it's scope in RtlCreateUserProcess svn path=/trunk/; revision=24849 --- reactos/lib/rtl/process.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/reactos/lib/rtl/process.c b/reactos/lib/rtl/process.c index 2db03835842..9fad780cb42 100644 --- a/reactos/lib/rtl/process.c +++ b/reactos/lib/rtl/process.c @@ -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 */