Author: cgutman
Date: Sat Aug 21 21:25:07 2010
New Revision: 48580
URL:
http://svn.reactos.org/svn/reactos?rev=48580&view=rev
Log:
[NTOSKRNL]
- Append the DLL name and NULL terminate the string more nicely
Modified:
trunk/reactos/ntoskrnl/mm/ARM3/sysldr.c
Modified: trunk/reactos/ntoskrnl/mm/ARM3/sysldr.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/mm/ARM3/sysldr.c?…
==============================================================================
--- trunk/reactos/ntoskrnl/mm/ARM3/sysldr.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/mm/ARM3/sysldr.c [iso-8859-1] Sat Aug 21 21:25:07 2010
@@ -1135,9 +1135,9 @@
ImageFileDirectory->Length);
/* Now add the import name and null-terminate it */
- RtlAppendStringToString((PSTRING)&DllName,
- (PSTRING)&NameString);
- DllName.Buffer[(DllName.MaximumLength - 1) / sizeof(WCHAR)] =
UNICODE_NULL;
+ RtlAppendUnicodeStringToString(&DllName,
+ &NameString);
+ DllName.Buffer[DllName.Length / sizeof(WCHAR)] = UNICODE_NULL;
/* Load the image */
Status = MmLoadSystemImage(&DllName,