Rob Shearman : urlmon: Don't use typeof as it's not portable.

Alexandre Julliard julliard at winehq.org
Wed Feb 27 08:03:12 CST 2008


Module: wine
Branch: master
Commit: 4e5c1bf6fdb5ac41012c9d17503d53975fe68f87
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=4e5c1bf6fdb5ac41012c9d17503d53975fe68f87

Author: Rob Shearman <rob at 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);
 




More information about the wine-cvs mailing list