https://git.reactos.org/?p=reactos.git;a=commitdiff;h=756152936b1097a3ee228b...
commit 756152936b1097a3ee228b1d3c5e364a7c1aeec4 Author: Hermès Bélusca-Maïto hermes.belusca-maito@reactos.org AuthorDate: Thu Apr 30 14:02:04 2020 +0200 Commit: Hermès Bélusca-Maïto hermes.belusca-maito@reactos.org CommitDate: Thu Apr 30 14:02:04 2020 +0200
[SMSS] Fix PROCESSOR_IDENTIFIER environment variable assignment.
The swprintf() formatting string slot was incorrect. Adapted from a patch by Kyle Katarn, PR #2697. --- base/system/smss/sminit.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/base/system/smss/sminit.c b/base/system/smss/sminit.c index 056176aa426..9532ee259fc 100644 --- a/base/system/smss/sminit.c +++ b/base/system/smss/sminit.c @@ -1820,13 +1820,13 @@ SmpCreateDynamicEnvironmentVariables(VOID) { /* To combine it into a single string */ swprintf((PWCHAR)PartialInfo->Data + wcslen((PWCHAR)PartialInfo->Data), - L", %S", + L", %s", PartialInfo2->Data); }
/* So that we can set this as the PROCESSOR_IDENTIFIER variable */ 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, &ValueName, 0,