OSDN Git Service

Fix a bug in the CPU detection code that could result in an infinite loop, if the...
authorlordmulder <mulder2@gmx.de>
Mon, 7 Feb 2011 21:01:06 +0000 (22:01 +0100)
committerlordmulder <mulder2@gmx.de>
Mon, 7 Feb 2011 21:01:06 +0000 (22:01 +0100)
commit8016e186dcb82b7aee4f34ad949f9beff939f2c1
tree94c3e90dbb3e78b79586d19cdf314dc201047158
parent0fd4b56a8791d5baaf828bda88b0b30b735753e1
Fix a bug in the CPU detection code that could result in an infinite loop, if the CPU doesn't provide 'Extended Function CPUID Information'. Core of this problem is that VC's __cpuid() intrinsic has the parameters defined as 'int', but returns values of type 'unsigned int'.
src/Config.h
src/Global.cpp
src/Main.cpp