summaryrefslogtreecommitdiffstats
path: root/chrome/common
diff options
context:
space:
mode:
authornsylvain@chromium.org <nsylvain@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-09-15 23:34:46 +0000
committernsylvain@chromium.org <nsylvain@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-09-15 23:34:46 +0000
commit9c94423cb59e7db7ef1cfb4ec779bd9acc5fc12e (patch)
treeaf47d75c3cecc296c39210afae9645324d9b5865 /chrome/common
parent859a419a63a860ce1241ad883ab5488f5495c71d (diff)
downloadchromium_src-9c94423cb59e7db7ef1cfb4ec779bd9acc5fc12e.zip
chromium_src-9c94423cb59e7db7ef1cfb4ec779bd9acc5fc12e.tar.gz
chromium_src-9c94423cb59e7db7ef1cfb4ec779bd9acc5fc12e.tar.bz2
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
Diffstat (limited to 'chrome/common')
-rw-r--r--chrome/common/resource_bundle.cc2
1 files changed, 1 insertions, 1 deletions
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 */