Commit 50347810 authored by Alexandre Julliard's avatar Alexandre Julliard

wineandroid.drv: Use the Unix call helpers.

parent 5ac3c41e
......@@ -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;
......
......@@ -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
......
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