Bug 823924 - Don't hardcode system directory when loading WMF libraries r=paul
authorJacek Caban <jacek@codeweavers.com>
Thu, 27 Dec 2012 15:03:55 +0100
changeset 126204 6d66c25f3e41da00ffafc0b10b63ece8adddf21b
parent 126203 158a9c8668bbbe8371d1d99c4bc2f62a7f0c8eda
child 126205 f3e277d2e0c167546b8a68edcfd39f5d239c9f55
push id2151
push userlsblakk@mozilla.com
push dateTue, 19 Feb 2013 18:06:57 +0000
treeherdermozilla-beta@4952e88741ec [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerspaul
bugs823924
milestone20.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 823924 - Don't hardcode system directory when loading WMF libraries r=paul
content/media/wmf/WMFUtils.cpp
--- a/content/media/wmf/WMFUtils.cpp
+++ b/content/media/wmf/WMFUtils.cpp
@@ -205,20 +205,20 @@ static bool sDLLsLoaded = false;
 static bool sFailedToLoadDlls = false;
 
 struct WMFModule {
   const char* name;
   HMODULE handle;
 };
 
 static WMFModule sDLLs[] = {
-  { "C:\\Windows\\system32\\mfplat.dll", NULL },
-  { "C:\\Windows\\system32\\mfreadwrite.dll", NULL },
-  { "C:\\Windows\\system32\\propsys.dll", NULL },
-  { "C:\\Windows\\system32\\mf.dll", NULL },
+  { "mfplat.dll", NULL },
+  { "mfreadwrite.dll", NULL },
+  { "propsys.dll", NULL },
+  { "mf.dll", NULL }
 };
 
 HRESULT
 LoadDLLs()
 {
   NS_ASSERTION(NS_IsMainThread(), "Should be on main thread.");
 
   if (sDLLsLoaded) {