Author: weiden Date: Mon Nov 27 17:26:48 2006 New Revision: 24849
URL: http://svn.reactos.org/svn/reactos?rev=24849&view=rev Log: Fix using a pointer to a temporary variable outside it's scope in RtlCreateUserProcess
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=24849... ============================================================================== --- trunk/reactos/lib/rtl/process.c (original) +++ trunk/reactos/lib/rtl/process.c Mon Nov 27 17:26:48 2006 @@ -195,6 +195,7 @@ 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 @@ 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 */