Commit c372caae authored by Alexandre Julliard's avatar Alexandre Julliard

winecoreaudio.drv: Use the Unix call helpers.

parent 9e4e8de7
...@@ -43,8 +43,6 @@ ...@@ -43,8 +43,6 @@
WINE_DEFAULT_DEBUG_CHANNEL(coreaudio); WINE_DEFAULT_DEBUG_CHANNEL(coreaudio);
unixlib_handle_t coreaudio_handle = 0;
#define NULL_PTR_ERR MAKE_HRESULT(SEVERITY_ERROR, FACILITY_WIN32, RPC_X_NULL_REF_POINTER) #define NULL_PTR_ERR MAKE_HRESULT(SEVERITY_ERROR, FACILITY_WIN32, RPC_X_NULL_REF_POINTER)
static const REFERENCE_TIME DefaultPeriod = 100000; static const REFERENCE_TIME DefaultPeriod = 100000;
...@@ -199,8 +197,7 @@ BOOL WINAPI DllMain(HINSTANCE dll, DWORD reason, void *reserved) ...@@ -199,8 +197,7 @@ BOOL WINAPI DllMain(HINSTANCE dll, DWORD reason, void *reserved)
{ {
case DLL_PROCESS_ATTACH: case DLL_PROCESS_ATTACH:
DisableThreadLibraryCalls(dll); DisableThreadLibraryCalls(dll);
if(NtQueryVirtualMemory(GetCurrentProcess(), dll, MemoryWineUnixFuncs, if (__wine_init_unix_call())
&coreaudio_handle, sizeof(coreaudio_handle), NULL))
return FALSE; return FALSE;
g_timer_q = CreateTimerQueue(); g_timer_q = CreateTimerQueue();
if(!g_timer_q) if(!g_timer_q)
......
...@@ -33,6 +33,4 @@ NTSTATUS unix_wow64_midi_in_message(void *args) DECLSPEC_HIDDEN; ...@@ -33,6 +33,4 @@ NTSTATUS unix_wow64_midi_in_message(void *args) DECLSPEC_HIDDEN;
NTSTATUS unix_wow64_midi_notify_wait(void *args) DECLSPEC_HIDDEN; NTSTATUS unix_wow64_midi_notify_wait(void *args) DECLSPEC_HIDDEN;
#endif #endif
extern unixlib_handle_t coreaudio_handle; #define UNIX_CALL( func, params ) WINE_UNIX_CALL( func, params )
#define UNIX_CALL( func, params ) __wine_unix_call( coreaudio_handle, func, params )
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