summaryrefslogtreecommitdiffstats
path: root/sandbox/src/service_resolver.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sandbox/src/service_resolver.cc')
-rw-r--r--sandbox/src/service_resolver.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/sandbox/src/service_resolver.cc b/sandbox/src/service_resolver.cc
index 97cb205..6491138 100644
--- a/sandbox/src/service_resolver.cc
+++ b/sandbox/src/service_resolver.cc
@@ -5,6 +5,7 @@
#include "sandbox/src/service_resolver.h"
#include "base/logging.h"
+#include "sandbox/src/pe_image.h"
#include "sandbox/src/sandbox_types.h"
#include "sandbox/src/sandbox_utils.h"
@@ -157,7 +158,8 @@ NTSTATUS ServiceResolverThunk::ResolveTarget(const void* module,
if (NULL == module)
return STATUS_UNSUCCESSFUL;
- *address = ::GetProcAddress(bit_cast<HMODULE>(module), function_name);
+ PEImage module_image(module);
+ *address = module_image.GetProcAddress(function_name);
if (NULL == *address)
return STATUS_UNSUCCESSFUL;