mirror of
https://github.com/reactos/reactos.git
synced 2024-10-04 08:25:53 +00:00
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
This commit is contained in:
parent
89db3ed74e
commit
f0fe4ec071
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue