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

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


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

Author: Rob Shearman <rob at codeweavers.com>
Date:   Tue Feb 26 11:13:00 2008 +0000

itss: Don't use typeof as it's not portable.

---

 dlls/itss/itss.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/itss/itss.c b/dlls/itss/itss.c
index 711d116..3bab9e1 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);
 




More information about the wine-cvs mailing list