Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
d246c1a1
Commit
d246c1a1
authored
Jul 09, 2022
by
Jacek Caban
Committed by
Alexandre Julliard
Jul 22, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Use __wine_unix_call.
parent
a53330b9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
18 deletions
+4
-18
dllmain.c
dlls/winex11.drv/dllmain.c
+2
-4
unixlib.h
dlls/winex11.drv/unixlib.h
+2
-4
x11drv_main.c
dlls/winex11.drv/x11drv_main.c
+0
-10
No files found.
dlls/winex11.drv/dllmain.c
View file @
d246c1a1
...
...
@@ -23,8 +23,7 @@
HMODULE
x11drv_module
=
0
;
static
unixlib_handle_t
x11drv_handle
;
NTSTATUS
(
CDECL
*
x11drv_unix_call
)(
enum
x11drv_funcs
code
,
void
*
params
);
unixlib_handle_t
x11drv_handle
;
typedef
NTSTATUS
(
*
callback_func
)(
UINT
arg
);
...
...
@@ -78,13 +77,12 @@ BOOL WINAPI DllMain( HINSTANCE instance, DWORD reason, void *reserved )
&
x11drv_handle
,
sizeof
(
x11drv_handle
),
NULL
))
return
FALSE
;
if
(
__wine_unix_call
(
x11drv_handle
,
unix_
init
,
&
params
))
return
FALSE
;
if
(
X11DRV_CALL
(
init
,
&
params
))
return
FALSE
;
callback_table
=
NtCurrentTeb
()
->
Peb
->
KernelCallbackTable
;
memcpy
(
callback_table
+
NtUserDriverCallbackFirst
,
kernel_callbacks
,
sizeof
(
kernel_callbacks
)
);
show_systray
=
params
.
show_systray
;
x11drv_unix_call
=
params
.
unix_call
;
return
TRUE
;
}
...
...
dlls/winex11.drv/unixlib.h
View file @
d246c1a1
...
...
@@ -36,9 +36,8 @@ enum x11drv_funcs
unix_funcs_count
,
};
/* FIXME: Use __wine_unix_call when the rest of the stack is ready */
extern
NTSTATUS
(
CDECL
*
x11drv_unix_call
)(
enum
x11drv_funcs
code
,
void
*
params
)
DECLSPEC_HIDDEN
;
#define X11DRV_CALL(func, params) x11drv_unix_call( unix_ ## func, params )
extern
unixlib_handle_t
x11drv_handle
DECLSPEC_HIDDEN
;
#define X11DRV_CALL(func, params) __wine_unix_call( x11drv_handle, unix_ ## func, params )
/* x11drv_create_desktop params */
struct
create_desktop_params
...
...
@@ -52,7 +51,6 @@ struct init_params
{
WNDPROC
foreign_window_proc
;
BOOL
show_systray
;
NTSTATUS
(
CDECL
*
unix_call
)(
enum
x11drv_funcs
code
,
void
*
params
);
};
struct
systray_dock_params
...
...
dlls/winex11.drv/x11drv_main.c
View file @
d246c1a1
...
...
@@ -220,8 +220,6 @@ static const char * const atom_names[NB_XATOMS - FIRST_XATOM] =
"text/uri-list"
};
static
NTSTATUS
CDECL
unix_call
(
enum
x11drv_funcs
code
,
void
*
params
);
/***********************************************************************
* ignore_error
*
...
...
@@ -717,7 +715,6 @@ static NTSTATUS x11drv_init( void *arg )
init_user_driver
();
X11DRV_DisplayDevices_Init
(
FALSE
);
params
->
show_systray
=
show_systray
;
params
->
unix_call
=
unix_call
;
return
STATUS_SUCCESS
;
}
...
...
@@ -1340,10 +1337,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
x11drv_funcs
code
,
void
*
params
)
{
return
__wine_unix_call_funcs
[
code
](
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