summaryrefslogtreecommitdiffstats
path: root/sandbox/src/interception.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sandbox/src/interception.cc')
-rw-r--r--sandbox/src/interception.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/sandbox/src/interception.cc b/sandbox/src/interception.cc
index 70808d2..198cdbf 100644
--- a/sandbox/src/interception.cc
+++ b/sandbox/src/interception.cc
@@ -314,6 +314,10 @@ bool InterceptionManager::PatchNtdll(bool hot_patch_needed) {
if (hot_patch_needed) {
#if SANDBOX_EXPORTS
+ // Make sure the functions are not excluded by the linker.
+ #pragma comment(linker, "/include:_TargetNtMapViewOfSection@44")
+ #pragma comment(linker, "/include:_TargetNtUnmapViewOfSection@12")
+
AddToPatchedFunctions(kNtdllName, kMapViewOfSectionName,
INTERCEPTION_SERVICE_CALL,
"_TargetNtMapViewOfSection@44");