| Index: sandbox/win/src/policy_broker.cc
|
| diff --git a/sandbox/win/src/policy_broker.cc b/sandbox/win/src/policy_broker.cc
|
| index dc5e18c28b9eb45c089ecdef68c1b0aaad154d28..c2d25bd55c25662e492f3becdca92144ffc55f76 100644
|
| --- a/sandbox/win/src/policy_broker.cc
|
| +++ b/sandbox/win/src/policy_broker.cc
|
| @@ -38,7 +38,7 @@ SANDBOX_INTERCEPT NtExports g_nt;
|
| if (NULL == g_nt.member) \
|
| return false
|
|
|
| -bool SetupNtdllImports(TargetProcess *child) {
|
| +bool InitGlobalNt() {
|
| HMODULE ntdll = ::GetModuleHandle(kNtdllName);
|
| base::win::PEImage ntdll_image(ntdll);
|
|
|
| @@ -75,6 +75,14 @@ bool SetupNtdllImports(TargetProcess *child) {
|
| INIT_GLOBAL_RTL(wcslen);
|
| INIT_GLOBAL_RTL(memcpy);
|
|
|
| + return true;
|
| +}
|
| +
|
| +bool SetupNtdllImports(TargetProcess *child) {
|
| + if (!InitGlobalNt()) {
|
| + return false;
|
| + }
|
| +
|
| #ifndef NDEBUG
|
| // Verify that the structure is fully initialized.
|
| for (size_t i = 0; i < sizeof(g_nt)/sizeof(void*); i++)
|
|
|