[ros-diffs] [weiden] 24849: Fix using a pointer to a temporary variable outside it's scope in RtlCreateUserProcess
weiden at svn.reactos.org
weiden at svn.reactos.org
Mon Nov 27 15:26:49 CET 2006
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&r1=24848&r2=24849&view=diff
==============================================================================
--- 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 */
More information about the Ros-diffs
mailing list