From da1d3fb455cb1c272cbfe43689c59ec5c60918b8 Mon Sep 17 00:00:00 2001 From: Rob Shearman Date: Tue, 26 Feb 2008 11:13:00 +0000 Subject: [PATCH] itss: Don't use typeof as it's not portable. --- dlls/itss/itss.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/itss/itss.c b/dlls/itss/itss.c index 711d116054b..3bab9e11c88 100644 --- a/dlls/itss/itss.c +++ b/dlls/itss/itss.c @@ -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);