Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
7df56c9b
Commit
7df56c9b
authored
Jul 22, 2022
by
Jacek Caban
Committed by
Alexandre Julliard
Jul 22, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winemac: Use __wine_unix_call.
parent
218e4698
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
21 deletions
+4
-21
dllmain.c
dlls/winemac.drv/dllmain.c
+2
-5
macdrv_main.c
dlls/winemac.drv/macdrv_main.c
+0
-12
unixlib.h
dlls/winemac.drv/unixlib.h
+2
-4
No files found.
dlls/winemac.drv/dllmain.c
View file @
7df56c9b
...
...
@@ -27,8 +27,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(macdrv);
HMODULE
macdrv_module
=
0
;
static
unixlib_handle_t
macdrv_handle
;
NTSTATUS
(
CDECL
*
macdrv_unix_call
)(
enum
macdrv_funcs
code
,
void
*
params
);
unixlib_handle_t
macdrv_handle
;
struct
quit_info
{
HWND
*
wins
;
...
...
@@ -414,12 +413,10 @@ static BOOL process_attach(void)
str
->
len
=
LoadStringW
(
macdrv_module
,
str
->
id
,
(
WCHAR
*
)
&
str
->
str
,
0
);
params
.
strings
=
strings
;
if
(
__wine_unix_call
(
macdrv_handle
,
unix_
init
,
&
params
))
return
FALSE
;
if
(
MACDRV_CALL
(
init
,
&
params
))
return
FALSE
;
callback_table
=
NtCurrentTeb
()
->
Peb
->
KernelCallbackTable
;
memcpy
(
callback_table
+
NtUserDriverCallbackFirst
,
kernel_callbacks
,
sizeof
(
kernel_callbacks
)
);
macdrv_unix_call
=
params
.
unix_call
;
return
TRUE
;
}
...
...
dlls/winemac.drv/macdrv_main.c
View file @
7df56c9b
...
...
@@ -429,9 +429,6 @@ static void load_strings(struct localized_string *str)
}
static
NTSTATUS
CDECL
unix_call
(
enum
macdrv_funcs
code
,
void
*
params
);
/***********************************************************************
* macdrv_init
*/
...
...
@@ -458,8 +455,6 @@ static NTSTATUS macdrv_init(void *arg)
init_user_driver
();
macdrv_init_display_devices
(
FALSE
);
params
->
unix_call
=
unix_call
;
return
STATUS_SUCCESS
;
}
...
...
@@ -658,10 +653,3 @@ const unixlib_entry_t __wine_unix_call_funcs[] =
};
C_ASSERT
(
ARRAYSIZE
(
__wine_unix_call_funcs
)
==
unix_funcs_count
);
/* FIXME: Use __wine_unix_call instead */
static
NTSTATUS
CDECL
unix_call
(
enum
macdrv_funcs
code
,
void
*
params
)
{
return
__wine_unix_call_funcs
[
code
](
params
);
}
dlls/winemac.drv/unixlib.h
View file @
7df56c9b
...
...
@@ -35,9 +35,8 @@ enum macdrv_funcs
unix_funcs_count
};
/* FIXME: Use __wine_unix_call when the rest of the stack is ready */
extern
NTSTATUS
(
CDECL
*
macdrv_unix_call
)(
enum
macdrv_funcs
code
,
void
*
params
)
DECLSPEC_HIDDEN
;
#define MACDRV_CALL(func, params) macdrv_unix_call(unix_ ## func, params)
extern
unixlib_handle_t
macdrv_handle
DECLSPEC_HIDDEN
;
#define MACDRV_CALL(func, params) __wine_unix_call(macdrv_handle, unix_ ## func, params)
/* macdrv_dnd_get_data params */
struct
dnd_get_data_params
...
...
@@ -84,7 +83,6 @@ struct localized_string
struct
init_params
{
struct
localized_string
*
strings
;
NTSTATUS
(
CDECL
*
unix_call
)(
enum
macdrv_funcs
code
,
void
*
params
);
};
/* macdrv_notify_icon params */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment