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:
parent
69dcbaaf93
commit
9a722d0afd
|
@ -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);
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue