diff options
Diffstat (limited to 'sandbox')
-rw-r--r-- | sandbox/src/win_utils.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sandbox/src/win_utils.cc b/sandbox/src/win_utils.cc index d42ec51..f5d39f2 100644 --- a/sandbox/src/win_utils.cc +++ b/sandbox/src/win_utils.cc @@ -200,8 +200,7 @@ bool GetPathFromHandle(HANDLE handle, std::wstring* path) { // TODO(cpu): This is not the final code we want here but we are yet // to understand what is going on. See bug 11789. void ResolveNTFunctionPtr(const char* name, void* ptr) { - static HMODULE ntdll = ::GetModuleHandle(sandbox::kNtdllName); - + HMODULE ntdll = ::GetModuleHandle(sandbox::kNtdllName); FARPROC* function_ptr = reinterpret_cast<FARPROC*>(ptr); *function_ptr = ::GetProcAddress(ntdll, name); if (*function_ptr) |