[NTOSKRNL]
authorCameron Gutman <aicommander@gmail.com>
Sat, 21 Aug 2010 21:25:07 +0000 (21:25 +0000)
committerCameron Gutman <aicommander@gmail.com>
Sat, 21 Aug 2010 21:25:07 +0000 (21:25 +0000)
- Append the DLL name and NULL terminate the string more nicely

svn path=/trunk/; revision=48580

reactos/ntoskrnl/mm/ARM3/sysldr.c

index b9fce2d..8a86c91 100644 (file)
@@ -1135,9 +1135,9 @@ CheckDllState:
                               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,