itss: Don't use typeof as it's not portable.
This commit is contained in:
parent
fc1b62bd7d
commit
da1d3fb455
|
@ -392,7 +392,7 @@ static HRESULT register_server(BOOL do_register)
|
|||
{
|
||||
HRESULT hres;
|
||||
HMODULE hAdvpack;
|
||||
typeof(RegInstallA) *pRegInstall;
|
||||
HRESULT (WINAPI *pRegInstall)(HMODULE hm, LPCSTR pszSection, const STRTABLEA* pstTable);
|
||||
STRTABLEA strtable;
|
||||
STRENTRYA pse[4];
|
||||
static CLSID const *clsids[4];
|
||||
|
@ -417,7 +417,7 @@ static HRESULT register_server(BOOL do_register)
|
|||
}
|
||||
|
||||
hAdvpack = LoadLibraryW(wszAdvpack);
|
||||
pRegInstall = (typeof(RegInstallA)*)GetProcAddress(hAdvpack, "RegInstall");
|
||||
pRegInstall = (void *)GetProcAddress(hAdvpack, "RegInstall");
|
||||
|
||||
hres = pRegInstall(hInst, do_register ? "RegisterDll" : "UnregisterDll", &strtable);
|
||||
|
||||
|
|
Loading…
Reference in New Issue