Index: util/win/process_info_test.cc |
diff --git a/util/win/process_info_test.cc b/util/win/process_info_test.cc |
index 4a8a209fd988c44ca51e338ffd5828245eb77ad6..e869b178559004ac04cedfd1bd5cc6761adae942 100644 |
--- a/util/win/process_info_test.cc |
+++ b/util/win/process_info_test.cc |
@@ -30,6 +30,7 @@ |
#include "test/win/child_launcher.h" |
#include "util/file/file_io.h" |
#include "util/misc/uuid.h" |
+#include "util/win/get_function.h" |
#include "util/win/scoped_handle.h" |
namespace crashpad { |
@@ -39,9 +40,8 @@ namespace { |
const wchar_t kNtdllName[] = L"\\ntdll.dll"; |
bool IsProcessWow64(HANDLE process_handle) { |
- static decltype(IsWow64Process)* is_wow64_process = |
- reinterpret_cast<decltype(IsWow64Process)*>( |
- GetProcAddress(LoadLibrary(L"kernel32.dll"), "IsWow64Process")); |
+ static const auto is_wow64_process = |
+ GET_FUNCTION(L"kernel32.dll", ::IsWow64Process); |
if (!is_wow64_process) |
return false; |
BOOL is_wow64; |