mirror of
https://github.com/reactos/reactos.git
synced 2024-10-27 00:22:03 +00:00
[NTOSKRNL]
- Append the DLL name and NULL terminate the string more nicely svn path=/trunk/; revision=48580
This commit is contained in:
parent
80cc3a0e88
commit
68eef5481f
|
@ -1135,9 +1135,9 @@ CheckDllState:
|
||||||
ImageFileDirectory->Length);
|
ImageFileDirectory->Length);
|
||||||
|
|
||||||
/* Now add the import name and null-terminate it */
|
/* Now add the import name and null-terminate it */
|
||||||
RtlAppendStringToString((PSTRING)&DllName,
|
RtlAppendUnicodeStringToString(&DllName,
|
||||||
(PSTRING)&NameString);
|
&NameString);
|
||||||
DllName.Buffer[(DllName.MaximumLength - 1) / sizeof(WCHAR)] = UNICODE_NULL;
|
DllName.Buffer[DllName.Length / sizeof(WCHAR)] = UNICODE_NULL;
|
||||||
|
|
||||||
/* Load the image */
|
/* Load the image */
|
||||||
Status = MmLoadSystemImage(&DllName,
|
Status = MmLoadSystemImage(&DllName,
|
||||||
|
|
Loading…
Reference in a new issue