mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 00:45:24 +00:00
[SMSS] Fix PROCESSOR_IDENTIFIER environment variable assignment.
The swprintf() formatting string slot was incorrect. Adapted from a patch by Kyle Katarn, PR #2697.
This commit is contained in:
parent
bd33e6b26f
commit
756152936b
1 changed files with 2 additions and 2 deletions
|
@ -1820,13 +1820,13 @@ SmpCreateDynamicEnvironmentVariables(VOID)
|
||||||
{
|
{
|
||||||
/* To combine it into a single string */
|
/* To combine it into a single string */
|
||||||
swprintf((PWCHAR)PartialInfo->Data + wcslen((PWCHAR)PartialInfo->Data),
|
swprintf((PWCHAR)PartialInfo->Data + wcslen((PWCHAR)PartialInfo->Data),
|
||||||
L", %S",
|
L", %s",
|
||||||
PartialInfo2->Data);
|
PartialInfo2->Data);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* So that we can set this as the PROCESSOR_IDENTIFIER variable */
|
/* So that we can set this as the PROCESSOR_IDENTIFIER variable */
|
||||||
RtlInitUnicodeString(&ValueName, L"PROCESSOR_IDENTIFIER");
|
RtlInitUnicodeString(&ValueName, L"PROCESSOR_IDENTIFIER");
|
||||||
DPRINT("Setting %wZ to %s\n", &ValueName, PartialInfo->Data);
|
DPRINT("Setting %wZ to %S\n", &ValueName, PartialInfo->Data);
|
||||||
Status = NtSetValueKey(KeyHandle,
|
Status = NtSetValueKey(KeyHandle,
|
||||||
&ValueName,
|
&ValueName,
|
||||||
0,
|
0,
|
||||||
|
|
Loading…
Reference in a new issue