Francois Gouget : Fix compatibility with native advpack dlls.
Alexandre Julliard
julliard at wine.codeweavers.com
Mon Mar 6 12:55:00 CST 2006
Module: wine
Branch: refs/heads/master
Commit: 9a722d0afd7672ea631b91b81fc7cb9569e15a2d
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=9a722d0afd7672ea631b91b81fc7cb9569e15a2d
Author: Francois Gouget <fgouget at free.fr>
Date: Mon Mar 6 11:11:09 2006 +0100
Fix compatibility with native advpack dlls.
Most native advpack dlls in circulation don't have RegInstallA. So
mshtml and urlmon should do a GetProcAddress() on 'RegInstall'
instead.
---
dlls/mshtml/main.c | 2 +-
dlls/urlmon/regsvr.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/mshtml/main.c b/dlls/mshtml/main.c
index e921e45..5aa506e 100644
--- a/dlls/mshtml/main.c
+++ b/dlls/mshtml/main.c
@@ -316,7 +316,7 @@ static HRESULT register_server(BOOL do_r
strtable.pse = pse;
hAdvpack = LoadLibraryW(wszAdvpack);
- pRegInstall = (typeof(RegInstallA)*)GetProcAddress(hAdvpack, "RegInstallA");
+ pRegInstall = (typeof(RegInstallA)*)GetProcAddress(hAdvpack, "RegInstall");
hres = pRegInstall(hInst, do_register ? "RegisterDll" : "UnregisterDll", &strtable);
diff --git a/dlls/urlmon/regsvr.c b/dlls/urlmon/regsvr.c
index 302584d..c04803b 100644
--- a/dlls/urlmon/regsvr.c
+++ b/dlls/urlmon/regsvr.c
@@ -608,7 +608,7 @@ static HRESULT register_inf(BOOL doregis
strtable.pse = pse;
hAdvpack = LoadLibraryW(wszAdvpack);
- pRegInstall = (typeof(RegInstallA)*)GetProcAddress(hAdvpack, "RegInstallA");
+ pRegInstall = (typeof(RegInstallA)*)GetProcAddress(hAdvpack, "RegInstall");
hres = pRegInstall(URLMON_hInstance, doregister ? "RegisterDll" : "UnregisterDll", &strtable);
More information about the wine-cvs
mailing list