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:
Hartmut Birr 2006-01-03 13:44:35 +00:00
parent 89db3ed74e
commit f0fe4ec071

View file

@ -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,