Skip to content

Commit 6c2699c

Browse files
committed
Merge pull request #94187 from akien-mga/windows-remove-unused-is_wow64
Remove unused `is_wow64` method in `OS_Windows`
2 parents b6434f2 + c349f0d commit 6c2699c

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

platform/windows/os_windows.cpp

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1634,26 +1634,6 @@ String OS_Windows::get_locale() const {
16341634
return "en";
16351635
}
16361636

1637-
// We need this because GetSystemInfo() is unreliable on WOW64
1638-
// see https://msdn.microsoft.com/en-us/library/windows/desktop/ms724381(v=vs.85).aspx
1639-
// Taken from MSDN
1640-
typedef BOOL(WINAPI *LPFN_ISWOW64PROCESS)(HANDLE, PBOOL);
1641-
LPFN_ISWOW64PROCESS fnIsWow64Process;
1642-
1643-
BOOL is_wow64() {
1644-
BOOL wow64 = FALSE;
1645-
1646-
fnIsWow64Process = (LPFN_ISWOW64PROCESS)GetProcAddress(GetModuleHandle(TEXT("kernel32")), "IsWow64Process");
1647-
1648-
if (fnIsWow64Process) {
1649-
if (!fnIsWow64Process(GetCurrentProcess(), &wow64)) {
1650-
wow64 = FALSE;
1651-
}
1652-
}
1653-
1654-
return wow64;
1655-
}
1656-
16571637
String OS_Windows::get_processor_name() const {
16581638
const String id = "Hardware\\Description\\System\\CentralProcessor\\0";
16591639

0 commit comments

Comments
 (0)