wineandroid.drv: Use the Unix call helpers.

This commit is contained in:
Alexandre Julliard 2022-11-24 10:31:07 +01:00
parent 5ac3c41eee
commit 50347810a1
2 changed files with 2 additions and 6 deletions

View file

@ -32,8 +32,6 @@
WINE_DEFAULT_DEBUG_CHANNEL(android);
static unixlib_handle_t unix_handle;
extern NTSTATUS CDECL wine_ntoskrnl_main_loop( HANDLE stop_event );
static HANDLE stop_event;
static HANDLE thread;
@ -124,9 +122,7 @@ BOOL WINAPI DllMain( HINSTANCE inst, DWORD reason, LPVOID reserved )
if (reason == DLL_PROCESS_ATTACH) return TRUE;
DisableThreadLibraryCalls( inst );
if (NtQueryVirtualMemory( GetCurrentProcess(), inst, MemoryWineUnixFuncs,
&unix_handle, sizeof(unix_handle), NULL ))
return FALSE;
if (__wine_init_unix_call()) return FALSE;
params.register_window_callback = register_window_callback;
if (ANDROID_CALL( init, &params )) return FALSE;

View file

@ -30,7 +30,7 @@ enum android_funcs
unix_funcs_count
};
#define ANDROID_CALL(func, params) __wine_unix_call( unix_handle, unix_ ## func, params )
#define ANDROID_CALL(func, params) WINE_UNIX_CALL( unix_ ## func, params )
/* android_init params */
struct init_params