Index: chrome_elf/chrome_redirects_main.cc |
diff --git a/chrome_elf/blacklist/test/blacklist_test_dll_1.cc b/chrome_elf/chrome_redirects_main.cc |
similarity index 56% |
copy from chrome_elf/blacklist/test/blacklist_test_dll_1.cc |
copy to chrome_elf/chrome_redirects_main.cc |
index a4e414d5210db7babf43c67996dbeec7e3944480..8d1b871d40b770e75731cd49655885b5d8f30fbc 100644 |
--- a/chrome_elf/blacklist/test/blacklist_test_dll_1.cc |
+++ b/chrome_elf/chrome_redirects_main.cc |
@@ -1,9 +1,14 @@ |
-// Copyright 2013 The Chromium Authors. All rights reserved. |
-// Use of this source code is governed by a BSD-style license that can be |
-// found in the LICENSE file. |
- |
-#include <windows.h> |
- |
-BOOL APIENTRY DllMain(HMODULE module, DWORD reason, LPVOID reserved) { |
- return TRUE; |
-} |
+// Copyright 2014 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#include <windows.h> |
+ |
+#include "chrome_elf/ntdll_cache.h" |
+ |
+BOOL APIENTRY DllMain(HMODULE module, DWORD reason, LPVOID reserved) { |
+ if (reason == DLL_PROCESS_ATTACH) |
+ InitCache(); |
+ |
+ return TRUE; |
+} |