Fix using a pointer to a temporary variable outside it's scope in RtlCreateUserProcess

svn path=/trunk/; revision=24849
This commit is contained in:
Thomas Bluemel 2006-11-27 14:26:48 +00:00
parent f8446ca7cb
commit 4e4647e514

View file

@ -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 */