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