From: Hartmut Birr Date: Tue, 3 Jan 2006 13:44:35 +0000 (+0000) Subject: Fixed the the conversion of the vendor identifier string. Sometimes, the wrong conver... X-Git-Tag: backups/expat-rbuild@40467~608 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=f0fe4ec0712b52e5706135b51de7405c0c77df63 Fixed the the conversion of the vendor identifier string. Sometimes, the wrong conversion has resulted in a invalid opcode exception. svn path=/trunk/; revision=20544 --- diff --git a/reactos/boot/freeldr/freeldr/arch/i386/hwcpu.c b/reactos/boot/freeldr/freeldr/arch/i386/hwcpu.c index 6a033f36186..7c502d60898 100644 --- a/reactos/boot/freeldr/freeldr/arch/i386/hwcpu.c +++ b/reactos/boot/freeldr/freeldr/arch/i386/hwcpu.c @@ -155,7 +155,7 @@ DetectCPU(FRLDRHKEY CpuKey, *Ptr = edx; Ptr++; *Ptr = ecx; - swprintf(VendorIdentifier, L"%s", tmpVendorIdentifier); + swprintf(VendorIdentifier, L"%S", tmpVendorIdentifier); /* Get Identifier */ GetCpuid(1, &eax, &ebx, &ecx, &edx); @@ -308,7 +308,7 @@ SetMpsProcessor(FRLDRHKEY CpuKey, *Ptr = edx; Ptr++; *Ptr = ecx; - swprintf(VendorIdentifier, L"%s", tmpVendorIdentifier); + swprintf(VendorIdentifier, L"%S", tmpVendorIdentifier); /* Get 'Identifier' */ swprintf(Identifier,