Do not overwrite some options for easy debugging and testing new themes
All checks were successful
Builds / ExectOS (amd64) (push) Successful in 26s
Builds / ExectOS (i686) (push) Successful in 25s

This commit is contained in:
Rafal Kupiec 2023-12-03 23:42:59 +01:00
parent 5131a682b8
commit 9f36d397f0
Signed by: belliash
GPG Key ID: 4E829243E0CFE6B4

View File

@ -78,10 +78,14 @@ BlpConfigUpdateGlobalConfiguration(IN PWCHAR Options)
Argument += 6; Argument += 6;
Length = RtlWideStringLength(Argument, 0); Length = RtlWideStringLength(Argument, 0);
/* Save debug port in global configuration */ /* Store debug port configuration if not set already */
BlMemoryAllocatePool(Length, (PVOID *)&BlpConfiguration.Debug); if(BlpConfiguration.Debug == NULL)
RtlCopyMemory(BlpConfiguration.Debug, Argument, (Length * sizeof(WCHAR)) - 1); {
BlpConfiguration.Debug[Length] = '\0'; /* Save debug port in global configuration */
BlMemoryAllocatePool(Length, (PVOID *)&BlpConfiguration.Debug);
RtlCopyMemory(BlpConfiguration.Debug, Argument, (Length * sizeof(WCHAR)) - 1);
BlpConfiguration.Debug[Length] = '\0';
}
} }
else if(RtlWideStringCompare(Argument, L"SHELL", 5) == 0) else if(RtlWideStringCompare(Argument, L"SHELL", 5) == 0)
{ {
@ -94,10 +98,14 @@ BlpConfigUpdateGlobalConfiguration(IN PWCHAR Options)
Argument += 6; Argument += 6;
Length = RtlWideStringLength(Argument, 0); Length = RtlWideStringLength(Argument, 0);
/* Save theme in global configuration */ /* Store theme configuration if not set already */
BlMemoryAllocatePool(Length, (PVOID *)&BlpConfiguration.Theme); if(BlpConfiguration.Theme == NULL)
RtlCopyMemory(BlpConfiguration.Theme, Argument, (Length * sizeof(WCHAR)) - 1); {
BlpConfiguration.Theme[Length] = '\0'; /* Save theme in global configuration */
BlMemoryAllocatePool(Length, (PVOID *)&BlpConfiguration.Theme);
RtlCopyMemory(BlpConfiguration.Theme, Argument, (Length * sizeof(WCHAR)) - 1);
BlpConfiguration.Theme[Length] = '\0';
}
} }
else if(RtlWideStringCompare(Argument, L"TIMEOUT=", 8) == 0) else if(RtlWideStringCompare(Argument, L"TIMEOUT=", 8) == 0)
{ {