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.
This commit is contained in:
Francois Gouget 2006-03-06 11:11:09 +01:00 committed by Alexandre Julliard
parent 69dcbaaf93
commit 9a722d0afd
2 changed files with 2 additions and 2 deletions

View File

@ -316,7 +316,7 @@ static HRESULT register_server(BOOL do_register)
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);

View File

@ -608,7 +608,7 @@ static HRESULT register_inf(BOOL doregister)
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);