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, 1 insertions, 3 deletions
diff --git a/chrome_elf/create_file/chrome_create_file_unittest.cc b/chrome_elf/create_file/chrome_create_file_unittest.cc
index e25b159..e958aa9 100644
--- a/chrome_elf/create_file/chrome_create_file_unittest.cc
+++ b/chrome_elf/create_file/chrome_create_file_unittest.cc
@@ -377,9 +377,7 @@ TEST_F(ChromeCreateFileTest, BypassTest) {
}
TEST_F(ChromeCreateFileTest, NtCreateFileAddressCheck) {
- HMODULE ntdll_handle = ::GetModuleHandle(L"ntdll.dll");
- EXPECT_EQ(::GetProcAddress(ntdll_handle, "NtCreateFile"),
- g_ntdll_lookup["NtCreateFile"]);
+ EXPECT_EQ(&g_nt_thunk_storage, g_ntdll_lookup["NtCreateFile"]);
}
TEST_F(ChromeCreateFileTest, ReadWriteFromNtDll) {