mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-06 08:54:05 +00:00
wineandroid.drv: Use the Unix call helpers.
This commit is contained in:
parent
5ac3c41eee
commit
50347810a1
|
@ -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, ¶ms )) 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
|
||||
|
|
Loading…
Reference in a new issue