summaryrefslogtreecommitdiff
path: root/Source/Core/Common/Src/CPUDetect.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Core/Common/Src/CPUDetect.cpp')
-rw-r--r--Source/Core/Common/Src/CPUDetect.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/Core/Common/Src/CPUDetect.cpp b/Source/Core/Common/Src/CPUDetect.cpp
index b0908758d5..cd77d37346 100644
--- a/Source/Core/Common/Src/CPUDetect.cpp
+++ b/Source/Core/Common/Src/CPUDetect.cpp
@@ -93,7 +93,8 @@ void CPUInfo::Detect()
#ifdef _WIN32
#ifdef _M_IX86
BOOL f64 = false;
- OS64bit = IsWow64Process(GetCurrentProcess(), &f64);
+ IsWow64Process(GetCurrentProcess(), &f64);
+ OS64bit = (f64 == TRUE) ? true : false;
#endif
#endif