summaryrefslogtreecommitdiffstats
path: root/sandbox/src/process_thread_interception.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sandbox/src/process_thread_interception.cc')
-rw-r--r--sandbox/src/process_thread_interception.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/sandbox/src/process_thread_interception.cc b/sandbox/src/process_thread_interception.cc
index 5a3119f..e98b588 100644
--- a/sandbox/src/process_thread_interception.cc
+++ b/sandbox/src/process_thread_interception.cc
@@ -424,4 +424,13 @@ HANDLE WINAPI TargetCreateThread(CreateThreadFunction orig_CreateThread,
return thread;
}
+// Cache the default LCID to avoid pinging CSRSS after lockdown.
+// TODO(jschuh): This approach will miss a default locale changes after
+// lockdown. In the future we may want to have the broker check instead.
+LCID WINAPI TargetGetUserDefaultLCID(
+ GetUserDefaultLCIDFunction orig_GetUserDefaultLCID) {
+ static LCID default_lcid = orig_GetUserDefaultLCID();
+ return default_lcid;
+}
+
} // namespace sandbox