Alexandre Julliard : mshtml: Try installing Gecko from the global data dir too.

Alexandre Julliard julliard at winehq.org
Mon Oct 4 11:04:02 CDT 2010


Module: wine
Branch: master
Commit: 2510df000d48dd8c505a633e97c31eef16c3113f
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=2510df000d48dd8c505a633e97c31eef16c3113f

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Mon Oct  4 13:28:37 2010 +0200

mshtml: Try installing Gecko from the global data dir too.

---

 dlls/mshtml/Makefile.in |    2 +-
 dlls/mshtml/install.c   |    8 +++++---
 2 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/dlls/mshtml/Makefile.in b/dlls/mshtml/Makefile.in
index d31d7c7..391e20b 100644
--- a/dlls/mshtml/Makefile.in
+++ b/dlls/mshtml/Makefile.in
@@ -1,7 +1,7 @@
 MODULE    = mshtml.dll
 IMPORTLIB = mshtml
 IMPORTS   = strmiids uuid urlmon shlwapi shell32 ole32 oleaut32 user32 gdi32 advapi32
-EXTRADEFS = -DCOM_NO_WINDOWS_H
+EXTRADEFS = -DCOM_NO_WINDOWS_H -DGECKO_DATADIR="\"$(datadir)\""
 DELAYIMPORTS = wininet
 
 C_SRCS = \
diff --git a/dlls/mshtml/install.c b/dlls/mshtml/install.c
index c635893..ee6959d 100644
--- a/dlls/mshtml/install.c
+++ b/dlls/mshtml/install.c
@@ -258,10 +258,12 @@ static BOOL install_from_default_dir(void)
     ret = install_from_unix_file(file_name);
 
     heap_free(file_name);
-    if(ret)
-        return TRUE;
 
-    return install_from_unix_file("/usr/share/wine/gecko/" GECKO_FILE_NAME);
+    if (!ret)
+        ret = install_from_unix_file( GECKO_DATADIR "/wine/gecko/" GECKO_FILE_NAME);
+    if (!ret && strcmp( GECKO_DATADIR, "/usr/share" ))
+        ret = install_from_unix_file("/usr/share/wine/gecko/" GECKO_FILE_NAME);
+    return ret;
 }
 
 static HRESULT WINAPI InstallCallback_QueryInterface(IBindStatusCallback *iface,




More information about the wine-cvs mailing list