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

Unified Diff: sandbox/src/service_resolver.cc

Issue 42013: Slight code change to make some global variables const. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 11 years, 9 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
« no previous file with comments | « sandbox/sandbox_poc/pocdll/invasive.cc ('k') | sandbox/tools/finder/stdafx.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sandbox/src/service_resolver.cc
===================================================================
--- sandbox/src/service_resolver.cc (revision 11293)
+++ sandbox/src/service_resolver.cc (working copy)
@@ -236,11 +236,13 @@
// able to patch a buffer in memory, so target_ is not inside ntdll.
module_2 = ntdll_base_;
} else {
- if (!GetModuleHandleHelper(GET_MODULE_HANDLE_EX_FLAG_FROM_ADDRESS |
- GET_MODULE_HANDLE_EX_FLAG_UNCHANGED_REFCOUNT,
- reinterpret_cast<const wchar_t*>(target_),
- &module_2))
+ if (!GetModuleHandleHelper(
+ GET_MODULE_HANDLE_EX_FLAG_FROM_ADDRESS |
+ GET_MODULE_HANDLE_EX_FLAG_UNCHANGED_REFCOUNT,
+ reinterpret_cast<const wchar_t*>(target_),
+ &module_2)) {
return false;
+ }
}
if (module_1 != module_2)
« no previous file with comments | « sandbox/sandbox_poc/pocdll/invasive.cc ('k') | sandbox/tools/finder/stdafx.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698