summaryrefslogtreecommitdiffstats
path: root/sandbox/src/policy_broker.h
diff options
context:
space:
mode:
authornsylvain@google.com <nsylvain@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-09-06 16:18:10 +0000
committernsylvain@google.com <nsylvain@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-09-06 16:18:10 +0000
commitedd909b4e2e3869676b4a1720088803065a63653 (patch)
tree038b0316a43f39b4eec7ba9b087f2d25f1aaff04 /sandbox/src/policy_broker.h
parent9394fa97725f4f4af43d445c29c71fbd6e555283 (diff)
downloadchromium_src-edd909b4e2e3869676b4a1720088803065a63653.zip
chromium_src-edd909b4e2e3869676b4a1720088803065a63653.tar.gz
chromium_src-edd909b4e2e3869676b4a1720088803065a63653.tar.bz2
Fix the sandbox when used with the SANDBOX_EXPORTS define.
Review URL: http://codereview.chromium.org/266 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1820 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'sandbox/src/policy_broker.h')
-rw-r--r--sandbox/src/policy_broker.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/sandbox/src/policy_broker.h b/sandbox/src/policy_broker.h
index 84ced58..8f0adc3 100644
--- a/sandbox/src/policy_broker.h
+++ b/sandbox/src/policy_broker.h
@@ -25,15 +25,15 @@ bool SetupNtdllImports(TargetProcess *child);
// underscore and the number of bytes to pop out of the stack)
#if SANDBOX_EXPORTS
#define INTERCEPT_NT(manager, service, exported_target) \
- (&Target##service) ? \
+ ((&Target##service) ? \
manager->AddToPatchedFunctions(kNtdllName, #service, \
sandbox::INTERCEPTION_SERVICE_CALL, \
- exported_target) : false
+ exported_target) : false)
#define INTERCEPT_EAT(manager, dll, function, exported_target) \
- (&Target##function) ? \
+ ((&Target##function) ? \
manager->AddToPatchedFunctions(dll, #function, sandbox::INTERCEPTION_EAT, \
- exported_target) : false
+ exported_target) : false)
#else
#define INTERCEPT_NT(manager, service, exported_target) \
manager->AddToPatchedFunctions(kNtdllName, #service, \