Commit fc1b62bd authored by Rob Shearman's avatar Rob Shearman Committed by Alexandre Julliard

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

parent f2b77031
...@@ -34,8 +34,8 @@ ...@@ -34,8 +34,8 @@
WINE_DEFAULT_DEBUG_CHANNEL(dsound); WINE_DEFAULT_DEBUG_CHANNEL(dsound);
static typeof(RegDeleteTreeW) * pRegDeleteTreeW; static LSTATUS (WINAPI *pRegDeleteTreeW)(HKEY,LPCWSTR);
static typeof(RegDeleteTreeA) * pRegDeleteTreeA; static LSTATUS (WINAPI *pRegDeleteTreeA)(HKEY,LPCSTR);
/* /*
* Near the bottom of this file are the exported DllRegisterServer and * Near the bottom of this file are the exported DllRegisterServer and
...@@ -516,8 +516,8 @@ HRESULT WINAPI DllUnregisterServer(void) ...@@ -516,8 +516,8 @@ HRESULT WINAPI DllUnregisterServer(void)
HMODULE advapi32 = GetModuleHandleA("advapi32"); HMODULE advapi32 = GetModuleHandleA("advapi32");
if (!advapi32) return E_FAIL; if (!advapi32) return E_FAIL;
pRegDeleteTreeA = (typeof(RegDeleteTreeA)*) GetProcAddress(advapi32, "RegDeleteTreeA"); pRegDeleteTreeA = (void *) GetProcAddress(advapi32, "RegDeleteTreeA");
pRegDeleteTreeW = (typeof(RegDeleteTreeW)*) GetProcAddress(advapi32, "RegDeleteTreeW"); pRegDeleteTreeW = (void *) GetProcAddress(advapi32, "RegDeleteTreeW");
if (!pRegDeleteTreeA || !pRegDeleteTreeW) return E_FAIL; if (!pRegDeleteTreeA || !pRegDeleteTreeW) return E_FAIL;
TRACE("\n"); TRACE("\n");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment