Rob Shearman : urlmon: Don't use typeof as it's not portable.
Module: wine Branch: master Commit: 4e5c1bf6fdb5ac41012c9d17503d53975fe68f87 URL: http://source.winehq.org/git/wine.git/?a=commit;h=4e5c1bf6fdb5ac41012c9d1750... Author: Rob Shearman <rob(a)codeweavers.com> Date: Tue Feb 26 11:13:18 2008 +0000 urlmon: Don't use typeof as it's not portable. --- dlls/urlmon/regsvr.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/urlmon/regsvr.c b/dlls/urlmon/regsvr.c index 76e06ab..ece1915 100644 --- a/dlls/urlmon/regsvr.c +++ b/dlls/urlmon/regsvr.c @@ -522,7 +522,7 @@ static HRESULT register_inf(BOOL doregister) { HRESULT hres; HMODULE hAdvpack; - typeof(RegInstallA) *pRegInstall; + HRESULT (WINAPI *pRegInstall)(HMODULE hm, LPCSTR pszSection, const STRTABLEA* pstTable); STRTABLEA strtable; STRENTRYA pse[7]; static CLSID const *clsids[34]; @@ -550,7 +550,7 @@ static HRESULT register_inf(BOOL doregister) strtable.pse = pse; hAdvpack = LoadLibraryW(wszAdvpack); - pRegInstall = (typeof(RegInstallA)*)GetProcAddress(hAdvpack, "RegInstall"); + pRegInstall = (void *)GetProcAddress(hAdvpack, "RegInstall"); hres = pRegInstall(URLMON_hInstance, doregister ? "RegisterDll" : "UnregisterDll", &strtable);
participants (1)
-
Alexandre Julliard