1
0
mirror of https://github.com/wine-mirror/wine synced 2024-07-08 03:45:57 +00:00

winealsa.drv: Use the Unix call helpers.

This commit is contained in:
Alexandre Julliard 2022-11-24 10:31:29 +01:00
parent 50347810a1
commit 9e4e8de7c1
2 changed files with 2 additions and 8 deletions

View File

@ -48,8 +48,6 @@
WINE_DEFAULT_DEBUG_CHANNEL(alsa);
unixlib_handle_t alsa_handle = 0;
#define NULL_PTR_ERR MAKE_HRESULT(SEVERITY_ERROR, FACILITY_WIN32, RPC_X_NULL_REF_POINTER)
static const REFERENCE_TIME DefaultPeriod = 100000;
@ -203,9 +201,7 @@ BOOL WINAPI DllMain(HINSTANCE dll, DWORD reason, void *reserved)
switch (reason)
{
case DLL_PROCESS_ATTACH:
if(NtQueryVirtualMemory(GetCurrentProcess(), dll, MemoryWineUnixFuncs,
&alsa_handle, sizeof(alsa_handle), NULL))
return FALSE;
if(__wine_init_unix_call()) return FALSE;
break;
case DLL_PROCESS_DETACH:

View File

@ -29,6 +29,4 @@ NTSTATUS alsa_wow64_midi_in_message(void *args) DECLSPEC_HIDDEN;
NTSTATUS alsa_wow64_midi_notify_wait(void *args) DECLSPEC_HIDDEN;
#endif
extern unixlib_handle_t alsa_handle;
#define ALSA_CALL(func, params) __wine_unix_call(alsa_handle, func, params)
#define ALSA_CALL(func, params) WINE_UNIX_CALL(func, params)