Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1286)

Unified Diff: sandbox/src/policy_broker.h

Issue 266: Fix the sandbox when used with the SANDBOX_EXPORTS define. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: sandbox/src/policy_broker.h
===================================================================
--- sandbox/src/policy_broker.h (revision 1675)
+++ sandbox/src/policy_broker.h (working copy)
@@ -25,15 +25,15 @@
// 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, \
« sandbox/src/filesystem_interception.h ('K') | « sandbox/src/filesystem_interception.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698