Rob Shearman : dsound: 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: fc1b62bd7ddf19364e1d2e44d8528a11967999d5
URL: http://source.winehq.org/git/wine.git/?a=commit;h=fc1b62bd7ddf19364e1d2e44d8528a11967999d5
Author: Rob Shearman <rob at codeweavers.com>
Date: Tue Feb 26 11:12:54 2008 +0000
dsound: Don't use typeof as it's not portable.
---
dlls/dsound/regsvr.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/dlls/dsound/regsvr.c b/dlls/dsound/regsvr.c
index 1609910..514cfc9 100644
--- a/dlls/dsound/regsvr.c
+++ b/dlls/dsound/regsvr.c
@@ -34,8 +34,8 @@
WINE_DEFAULT_DEBUG_CHANNEL(dsound);
-static typeof(RegDeleteTreeW) * pRegDeleteTreeW;
-static typeof(RegDeleteTreeA) * pRegDeleteTreeA;
+static LSTATUS (WINAPI *pRegDeleteTreeW)(HKEY,LPCWSTR);
+static LSTATUS (WINAPI *pRegDeleteTreeA)(HKEY,LPCSTR);
/*
* Near the bottom of this file are the exported DllRegisterServer and
@@ -516,8 +516,8 @@ HRESULT WINAPI DllUnregisterServer(void)
HMODULE advapi32 = GetModuleHandleA("advapi32");
if (!advapi32) return E_FAIL;
- pRegDeleteTreeA = (typeof(RegDeleteTreeA)*) GetProcAddress(advapi32, "RegDeleteTreeA");
- pRegDeleteTreeW = (typeof(RegDeleteTreeW)*) GetProcAddress(advapi32, "RegDeleteTreeW");
+ pRegDeleteTreeA = (void *) GetProcAddress(advapi32, "RegDeleteTreeA");
+ pRegDeleteTreeW = (void *) GetProcAddress(advapi32, "RegDeleteTreeW");
if (!pRegDeleteTreeA || !pRegDeleteTreeW) return E_FAIL;
TRACE("\n");
More information about the wine-cvs
mailing list