Commit 5ac3c41e authored by Alexandre Julliard's avatar Alexandre Julliard

winemac.drv: Use the Unix call helpers.

parent cb713d60
......@@ -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);
......
......@@ -35,8 +35,7 @@ enum macdrv_funcs
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
......
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