winemac.drv: Use the Unix call helpers.

This commit is contained in:
Alexandre Julliard 2022-11-24 10:30:44 +01:00
parent cb713d6006
commit 5ac3c41eee
2 changed files with 2 additions and 6 deletions

View file

@ -27,7 +27,6 @@ WINE_DEFAULT_DEBUG_CHANNEL(macdrv);
HMODULE macdrv_module = 0;
unixlib_handle_t macdrv_handle;
struct quit_info {
HWND *wins;
@ -406,9 +405,7 @@ static BOOL process_attach(void)
{ .id = 0 }
};
if (NtQueryVirtualMemory(GetCurrentProcess(), macdrv_module, MemoryWineUnixFuncs,
&macdrv_handle, sizeof(macdrv_handle), NULL))
return FALSE;
if (__wine_init_unix_call()) return FALSE;
for (str = strings; str->id; str++)
str->len = LoadStringW(macdrv_module, str->id, (WCHAR *)&str->str, 0);

View file

@ -35,8 +35,7 @@
unix_funcs_count
};
extern unixlib_handle_t macdrv_handle DECLSPEC_HIDDEN;
#define MACDRV_CALL(func, params) __wine_unix_call(macdrv_handle, unix_ ## func, params)
#define MACDRV_CALL(func, params) WINE_UNIX_CALL(unix_ ## func, params)
/* macdrv_dnd_get_data params */
struct dnd_get_data_params