winex11.drv: Use the Unix call helpers.

This commit is contained in:
Alexandre Julliard 2022-11-24 10:30:16 +01:00
parent 1d036c0493
commit cb713d6006
2 changed files with 2 additions and 7 deletions

View file

@ -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, &params )) return FALSE;
callback_table = NtCurrentTeb()->Peb->KernelCallbackTable;

View file

@ -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