| Index: base/win/scoped_handle.cc
|
| diff --git a/base/win/scoped_handle.cc b/base/win/scoped_handle.cc
|
| index 7fa8b4380913d4aed8e0b927fb8c0a3d2d82c22d..cce16281ae41200776cafa73efbf8a59c2cb8f84 100644
|
| --- a/base/win/scoped_handle.cc
|
| +++ b/base/win/scoped_handle.cc
|
| @@ -16,15 +16,13 @@
|
| #include "base/macros.h"
|
| #include "base/synchronization/lock_impl.h"
|
| #include "base/threading/thread_local.h"
|
| +#include "base/win/current_module.h"
|
|
|
| extern "C" {
|
| __declspec(dllexport) void* GetHandleVerifier();
|
| typedef void* (*GetHandleVerifierFn)();
|
| }
|
|
|
| -// http://blogs.msdn.com/oldnewthing/archive/2004/10/25/247180.aspx
|
| -extern "C" IMAGE_DOS_HEADER __ImageBase;
|
| -
|
| namespace {
|
|
|
| struct HandleHash {
|
| @@ -247,7 +245,7 @@ void ActiveVerifier::OnHandleBeingClosed(HANDLE handle) {
|
| }
|
|
|
| HMODULE ActiveVerifier::GetModule() const {
|
| - return reinterpret_cast<HMODULE>(&__ImageBase);
|
| + return CURRENT_MODULE();
|
| }
|
|
|
| } // namespace
|
|
|