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
218e4698
Commit
218e4698
authored
Jul 22, 2022
by
Jacek Caban
Committed by
Alexandre Julliard
Jul 22, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineandroid: Use __wine_unix_call.
parent
d246c1a1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
16 deletions
+2
-16
dllmain.c
dlls/wineandroid.drv/dllmain.c
+1
-3
init.c
dlls/wineandroid.drv/init.c
+0
-10
unixlib.h
dlls/wineandroid.drv/unixlib.h
+1
-3
No files found.
dlls/wineandroid.drv/dllmain.c
View file @
218e4698
...
@@ -33,7 +33,6 @@ WINE_DEFAULT_DEBUG_CHANNEL(android);
...
@@ -33,7 +33,6 @@ WINE_DEFAULT_DEBUG_CHANNEL(android);
static
unixlib_handle_t
unix_handle
;
static
unixlib_handle_t
unix_handle
;
static
NTSTATUS
(
CDECL
*
unix_call
)(
enum
android_funcs
code
,
void
*
params
);
extern
NTSTATUS
CDECL
wine_ntoskrnl_main_loop
(
HANDLE
stop_event
);
extern
NTSTATUS
CDECL
wine_ntoskrnl_main_loop
(
HANDLE
stop_event
);
static
HANDLE
stop_event
;
static
HANDLE
stop_event
;
...
@@ -130,12 +129,11 @@ BOOL WINAPI DllMain( HINSTANCE inst, DWORD reason, LPVOID reserved )
...
@@ -130,12 +129,11 @@ BOOL WINAPI DllMain( HINSTANCE inst, DWORD reason, LPVOID reserved )
return
FALSE
;
return
FALSE
;
params
.
register_window_callback
=
register_window_callback
;
params
.
register_window_callback
=
register_window_callback
;
if
(
__wine_unix_call
(
unix_handle
,
unix_
init
,
&
params
))
return
FALSE
;
if
(
ANDROID_CALL
(
init
,
&
params
))
return
FALSE
;
callback_table
=
NtCurrentTeb
()
->
Peb
->
KernelCallbackTable
;
callback_table
=
NtCurrentTeb
()
->
Peb
->
KernelCallbackTable
;
callback_table
[
client_start_device
]
=
android_start_device
;
callback_table
[
client_start_device
]
=
android_start_device
;
unix_call
=
params
.
unix_call
;
return
TRUE
;
return
TRUE
;
}
}
...
...
dlls/wineandroid.drv/init.c
View file @
218e4698
...
@@ -562,8 +562,6 @@ JavaVM **p_java_vm = NULL;
...
@@ -562,8 +562,6 @@ JavaVM **p_java_vm = NULL;
jobject
*
p_java_object
=
NULL
;
jobject
*
p_java_object
=
NULL
;
unsigned
short
*
p_java_gdt_sel
=
NULL
;
unsigned
short
*
p_java_gdt_sel
=
NULL
;
static
NTSTATUS
CDECL
unix_call
(
enum
android_funcs
code
,
void
*
params
);
static
HRESULT
android_init
(
void
*
arg
)
static
HRESULT
android_init
(
void
*
arg
)
{
{
struct
init_params
*
params
=
arg
;
struct
init_params
*
params
=
arg
;
...
@@ -609,7 +607,6 @@ static HRESULT android_init( void *arg )
...
@@ -609,7 +607,6 @@ static HRESULT android_init( void *arg )
#endif
#endif
}
}
__wine_set_user_driver
(
&
android_drv_funcs
,
WINE_GDI_DRIVER_VERSION
);
__wine_set_user_driver
(
&
android_drv_funcs
,
WINE_GDI_DRIVER_VERSION
);
params
->
unix_call
=
unix_call
;
return
STATUS_SUCCESS
;
return
STATUS_SUCCESS
;
}
}
...
@@ -625,10 +622,3 @@ const unixlib_entry_t __wine_unix_call_funcs[] =
...
@@ -625,10 +622,3 @@ const unixlib_entry_t __wine_unix_call_funcs[] =
C_ASSERT
(
ARRAYSIZE
(
__wine_unix_call_funcs
)
==
unix_funcs_count
);
C_ASSERT
(
ARRAYSIZE
(
__wine_unix_call_funcs
)
==
unix_funcs_count
);
/* FIXME: Use __wine_unix_call instead */
static
NTSTATUS
CDECL
unix_call
(
enum
android_funcs
code
,
void
*
params
)
{
return
__wine_unix_call_funcs
[
code
](
params
);
}
dlls/wineandroid.drv/unixlib.h
View file @
218e4698
...
@@ -30,14 +30,12 @@ enum android_funcs
...
@@ -30,14 +30,12 @@ enum android_funcs
unix_funcs_count
unix_funcs_count
};
};
/* FIXME: Use __wine_unix_call when the rest of the stack is ready */
#define ANDROID_CALL(func, params) __wine_unix_call( unix_handle, unix_ ## func, params )
#define ANDROID_CALL(func, params) unix_call( unix_ ## func, params )
/* android_init params */
/* android_init params */
struct
init_params
struct
init_params
{
{
PNTAPCFUNC
register_window_callback
;
PNTAPCFUNC
register_window_callback
;
NTSTATUS
(
CDECL
*
unix_call
)(
enum
android_funcs
code
,
void
*
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