mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-06 09:35:52 +00:00
winex11.drv: Use the Unix call helpers.
This commit is contained in:
parent
1d036c0493
commit
cb713d6006
|
@ -23,7 +23,6 @@
|
|||
|
||||
|
||||
HMODULE x11drv_module = 0;
|
||||
unixlib_handle_t x11drv_handle;
|
||||
|
||||
|
||||
typedef NTSTATUS (*callback_func)( UINT arg );
|
||||
|
@ -74,10 +73,7 @@ BOOL WINAPI DllMain( HINSTANCE instance, DWORD reason, void *reserved )
|
|||
|
||||
DisableThreadLibraryCalls( instance );
|
||||
x11drv_module = instance;
|
||||
if (NtQueryVirtualMemory( GetCurrentProcess(), instance, MemoryWineUnixFuncs,
|
||||
&x11drv_handle, sizeof(x11drv_handle), NULL ))
|
||||
return FALSE;
|
||||
|
||||
if (__wine_init_unix_call()) return FALSE;
|
||||
if (X11DRV_CALL( init, ¶ms )) return FALSE;
|
||||
|
||||
callback_table = NtCurrentTeb()->Peb->KernelCallbackTable;
|
||||
|
|
|
@ -36,8 +36,7 @@ enum x11drv_funcs
|
|||
unix_funcs_count,
|
||||
};
|
||||
|
||||
extern unixlib_handle_t x11drv_handle DECLSPEC_HIDDEN;
|
||||
#define X11DRV_CALL(func, params) __wine_unix_call( x11drv_handle, unix_ ## func, params )
|
||||
#define X11DRV_CALL(func, params) WINE_UNIX_CALL( unix_ ## func, params )
|
||||
|
||||
/* x11drv_create_desktop params */
|
||||
struct create_desktop_params
|
||||
|
|
Loading…
Reference in a new issue