Properly copy kernel parameters into the loader block
This commit is contained in:
parent
8f7641d91f
commit
48d1e7f04c
@ -468,7 +468,8 @@ XtpInitializeLoaderBlock(IN PXTBL_PAGE_MAPPING PageMap,
|
||||
// }
|
||||
|
||||
/* Copy parameters to kernel initialization block */
|
||||
RtlCopyMemory(&LoaderBlock->KernelParameters, Parameters->Parameters, RtlWideStringLength(Parameters->Parameters, 0));
|
||||
RtlCopyMemory(LoaderBlock->KernelParameters, Parameters->Parameters,
|
||||
(RtlWideStringLength(Parameters->Parameters, 0) + 1) * sizeof(WCHAR));
|
||||
|
||||
/* Map kernel initialization block */
|
||||
XtLdrProtocol->Memory.MapVirtualMemory(PageMap, *VirtualAddress, (PVOID)LoaderBlock,
|
||||
|
Loading…
Reference in New Issue
Block a user