From 9c94423cb59e7db7ef1cfb4ec779bd9acc5fc12e Mon Sep 17 00:00:00 2001 From: "nsylvain@chromium.org" Date: Mon, 15 Sep 2008 23:34:46 +0000 Subject: Make sure we don't execute code from the theme dll. Note that this flag might not play well on Windows 2k and XP prior to SP2. BUG:2281 Theme dll file can be used to execute code on pre-Vista OSs Review URL: http://codereview.chromium.org/2857 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2243 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/common/resource_bundle.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'chrome') diff --git a/chrome/common/resource_bundle.cc b/chrome/common/resource_bundle.cc index 107c6e0..032efca 100644 --- a/chrome/common/resource_bundle.cc +++ b/chrome/common/resource_bundle.cc @@ -31,7 +31,7 @@ DWORD GetDataDllLoadFlags() { if (win_util::GetWinVersion() >= win_util::WINVERSION_VISTA) return LOAD_LIBRARY_AS_DATAFILE_EXCLUSIVE | LOAD_LIBRARY_AS_IMAGE_RESOURCE; - return 0; + return LOAD_LIBRARY_AS_DATAFILE; } /* static */ -- cgit v1.1