Fixed the the conversion of the vendor identifier string. Sometimes, the wrong conversion has resulted in a invalid opcode exception. Modified: trunk/reactos/boot/freeldr/freeldr/arch/i386/hwcpu.c _____
Modified: trunk/reactos/boot/freeldr/freeldr/arch/i386/hwcpu.c --- trunk/reactos/boot/freeldr/freeldr/arch/i386/hwcpu.c 2006-01-03 11:49:59 UTC (rev 20543) +++ trunk/reactos/boot/freeldr/freeldr/arch/i386/hwcpu.c 2006-01-03 13:44:35 UTC (rev 20544) @@ -155,7 +155,7 @@
*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 @@ *Ptr = edx; Ptr++; *Ptr = ecx; - swprintf(VendorIdentifier, L"%s", tmpVendorIdentifier); + swprintf(VendorIdentifier, L"%S", tmpVendorIdentifier);
/* Get 'Identifier' */ swprintf(Identifier,