summaryrefslogtreecommitdiffstats
path: root/sandbox
diff options
context:
space:
mode:
authorcpu@chromium.org <cpu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-14 22:12:29 +0000
committercpu@chromium.org <cpu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-14 22:12:29 +0000
commit6710446191c03a7098753cb81989a699b1b54736 (patch)
treef3061b31318a9788e5f3197609e6d585dc8744ac /sandbox
parent74f87acf261ceb3c804f4b0d71cb38f0f4531270 (diff)
downloadchromium_src-6710446191c03a7098753cb81989a699b1b54736.zip
chromium_src-6710446191c03a7098753cb81989a699b1b54736.tar.gz
chromium_src-6710446191c03a7098753cb81989a699b1b54736.tar.bz2
Change yet again the way we do ResolveNTFunctionPtr
- This version is different from last three TEST=chrome should start and you can browse BUG=11789 Review URL: http://codereview.chromium.org/275014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29039 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'sandbox')
-rw-r--r--sandbox/src/win_utils.cc3
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)