| Index: util/win/process_info_test.cc
|
| diff --git a/util/win/process_info_test.cc b/util/win/process_info_test.cc
|
| index 925d0062273b0f9e55361b91803092d9723565da..075f8eb445b74e035b03d90b6455eb2ed370733b 100644
|
| --- a/util/win/process_info_test.cc
|
| +++ b/util/win/process_info_test.cc
|
| @@ -31,6 +31,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 {
|
| @@ -40,9 +41,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;
|
|
|