mirror of
https://github.com/reactos/reactos.git
synced 2025-07-24 07:14:04 +00: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:
parent
f8446ca7cb
commit
4e4647e514
1 changed files with 2 additions and 6 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue