summaryrefslogtreecommitdiffstats
path: root/chrome_elf/create_file/chrome_create_file_unittest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome_elf/create_file/chrome_create_file_unittest.cc')
-rw-r--r--chrome_elf/create_file/chrome_create_file_unittest.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/chrome_elf/create_file/chrome_create_file_unittest.cc b/chrome_elf/create_file/chrome_create_file_unittest.cc
index e958aa9..e25b159 100644
--- a/chrome_elf/create_file/chrome_create_file_unittest.cc
+++ b/chrome_elf/create_file/chrome_create_file_unittest.cc
@@ -377,7 +377,9 @@ TEST_F(ChromeCreateFileTest, BypassTest) {
}
TEST_F(ChromeCreateFileTest, NtCreateFileAddressCheck) {
- EXPECT_EQ(&g_nt_thunk_storage, g_ntdll_lookup["NtCreateFile"]);
+ HMODULE ntdll_handle = ::GetModuleHandle(L"ntdll.dll");
+ EXPECT_EQ(::GetProcAddress(ntdll_handle, "NtCreateFile"),
+ g_ntdll_lookup["NtCreateFile"]);
}
TEST_F(ChromeCreateFileTest, ReadWriteFromNtDll) {