diff options
author | nsylvain@chromium.org <nsylvain@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-23 22:42:25 +0000 |
---|---|---|
committer | nsylvain@chromium.org <nsylvain@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-23 22:42:25 +0000 |
commit | 27d753ac9ecc5afa4e49214e486d5dfbb50ce588 (patch) | |
tree | 58a3bdc2b415c6d99fe7431a7535927d84074d86 /sandbox/sandbox_poc/sandbox.cc | |
parent | 34f993563386ad569f3674d157153e697e847e0a (diff) | |
download | chromium_src-27d753ac9ecc5afa4e49214e486d5dfbb50ce588.zip chromium_src-27d753ac9ecc5afa4e49214e486d5dfbb50ce588.tar.gz chromium_src-27d753ac9ecc5afa4e49214e486d5dfbb50ce588.tar.bz2 |
Fix the POC and some of unit tests to be build and
run correctly in 64 bit.
BUG=27218
Review URL: http://codereview.chromium.org/1168002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@42392 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'sandbox/sandbox_poc/sandbox.cc')
-rw-r--r-- | sandbox/sandbox_poc/sandbox.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sandbox/sandbox_poc/sandbox.cc b/sandbox/sandbox_poc/sandbox.cc index 53a9f5a..4dc0882 100644 --- a/sandbox/sandbox_poc/sandbox.cc +++ b/sandbox/sandbox_poc/sandbox.cc @@ -1,4 +1,4 @@ -// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. +// Copyright (c) 2006-2010 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -148,9 +148,6 @@ int APIENTRY _tWinMain(HINSTANCE instance, HINSTANCE, wchar_t* command_line, return -4; } - // Initialization is finished, so we can enter lock-down mode - target_service->LowerToken(); - // We now know what we should load, so load it HMODULE dll_module = ::LoadLibraryA(dll_name.c_str()); if (dll_module == NULL) { @@ -158,6 +155,9 @@ int APIENTRY _tWinMain(HINSTANCE instance, HINSTANCE, wchar_t* command_line, return -5; } + // Initialization is finished, so we can enter lock-down mode + target_service->LowerToken(); + lpfnInit init_function = (lpfnInit) ::GetProcAddress(dll_module, entry_point.c_str()); |