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