| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include <windows.h> | 5 #include <windows.h> |
| 6 | 6 |
| 7 #include "chrome_elf/ntdll_cache.h" | 7 extern "C" { |
| 8 // Have a dummy export so that the module gets an export table entry. |
| 9 void DummyExport() { |
| 10 } |
| 11 } |
| 8 | 12 |
| 9 BOOL APIENTRY DllMain(HMODULE module, DWORD reason, LPVOID reserved) { | 13 BOOL APIENTRY DllMain(HMODULE module, DWORD reason, LPVOID reserved) { |
| 10 if (reason == DLL_PROCESS_ATTACH) | 14 return true; |
| 11 InitCache(); | |
| 12 | |
| 13 return TRUE; | |
| 14 } | 15 } |
| OLD | NEW |