Skip to content

Commit

Permalink
Remove unused is_wow64 method in OS_Windows
Browse files Browse the repository at this point in the history
It was added in b4d369c for `get_processor_count`, but this was later
changed to rely on `std::thread` in 6bf02c0.
  • Loading branch information
akien-mga committed Jul 11, 2024
1 parent 26d1577 commit c349f0d
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions platform/windows/os_windows.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1634,26 +1634,6 @@ String OS_Windows::get_locale() const {
return "en";
}

// We need this because GetSystemInfo() is unreliable on WOW64
// see https://msdn.microsoft.com/en-us/library/windows/desktop/ms724381(v=vs.85).aspx
// Taken from MSDN
typedef BOOL(WINAPI *LPFN_ISWOW64PROCESS)(HANDLE, PBOOL);
LPFN_ISWOW64PROCESS fnIsWow64Process;

BOOL is_wow64() {
BOOL wow64 = FALSE;

fnIsWow64Process = (LPFN_ISWOW64PROCESS)GetProcAddress(GetModuleHandle(TEXT("kernel32")), "IsWow64Process");

if (fnIsWow64Process) {
if (!fnIsWow64Process(GetCurrentProcess(), &wow64)) {
wow64 = FALSE;
}
}

return wow64;
}

String OS_Windows::get_processor_name() const {
const String id = "Hardware\\Description\\System\\CentralProcessor\\0";

Expand Down

0 comments on commit c349f0d

Please sign in to comment.