BUGFIX: Do not cut last character
This commit is contained in:
parent
368035c105
commit
3bd4332573
@ -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';
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user