XTLDR Rewrite #7

Merged
belliash merged 184 commits from xtldr_rewrite into master 2024-01-09 18:51:04 +01:00
Showing only changes of commit 3bd4332573 - Show all commits

View File

@ -69,7 +69,7 @@ BlpUpdateGlobalConfiguration(IN PWCHAR Options)
/* Save default OS parameter in global configuration */
BlMemoryAllocatePool(Length, (PVOID *)&BlpConfiguration.Default);
RtlCopyMemory(BlpConfiguration.Default, Argument, (Length * sizeof(WCHAR)) - 1);
RtlCopyMemory(BlpConfiguration.Default, Argument, (Length * sizeof(WCHAR)));
BlpConfiguration.Default[Length] = '\0';
}
else if(RtlCompareWideStringInsensitive(Argument, L"DEBUG=", 6) == 0)
@ -83,7 +83,7 @@ BlpUpdateGlobalConfiguration(IN PWCHAR Options)
{
/* Save debug port in global configuration */
BlMemoryAllocatePool(Length, (PVOID *)&BlpConfiguration.Debug);
RtlCopyMemory(BlpConfiguration.Debug, Argument, (Length * sizeof(WCHAR)) - 1);
RtlCopyMemory(BlpConfiguration.Debug, Argument, (Length * sizeof(WCHAR)));
BlpConfiguration.Debug[Length] = '\0';
}
}
@ -116,7 +116,7 @@ BlpUpdateGlobalConfiguration(IN PWCHAR Options)
/* Save theme in global configuration */
BlMemoryAllocatePool(Length, (PVOID *)&BlpConfiguration.Tune);
RtlCopyMemory(BlpConfiguration.Tune, Argument, (Length * sizeof(WCHAR)) - 1);
RtlCopyMemory(BlpConfiguration.Tune, Argument, (Length * sizeof(WCHAR)));
BlpConfiguration.Tune[Length] = '\0';
}