summaryrefslogtreecommitdiffstats
path: root/sandbox/src/handle_closer.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sandbox/src/handle_closer.cc')
-rw-r--r--sandbox/src/handle_closer.cc12
1 files changed, 10 insertions, 2 deletions
diff --git a/sandbox/src/handle_closer.cc b/sandbox/src/handle_closer.cc
index 3ac802e..a9778eb 100644
--- a/sandbox/src/handle_closer.cc
+++ b/sandbox/src/handle_closer.cc
@@ -159,8 +159,16 @@ bool HandleCloser::SetupHandleInterceptions(InterceptionManager* manager) {
if (base::win::GetVersion() >= base::win::VERSION_VISTA &&
names != handles_to_close_.end() &&
(names->second.empty() || names->second.size() == 0)) {
- return INTERCEPT_EAT(manager, kKerneldllName, CreateThread,
- CREATE_THREAD_ID, 28);
+ if (!INTERCEPT_EAT(manager, kKerneldllName, CreateThread,
+ CREATE_THREAD_ID, 28)) {
+ return false;
+ }
+ if (!INTERCEPT_EAT(manager, kKerneldllName, GetUserDefaultLCID,
+ GET_USER_DEFAULT_LCID_ID, 4)) {
+ return false;
+ }
+
+ return true;
}
return true;