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
be44253c
Commit
be44253c
authored
Jan 19, 2024
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineandroid.drv: Return result through NtCallbackReturn for the start device callback.
parent
643538a8
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
device.c
dlls/wineandroid.drv/device.c
+2
-1
dllmain.c
dlls/wineandroid.drv/dllmain.c
+2
-3
No files found.
dlls/wineandroid.drv/device.c
View file @
be44253c
...
@@ -1177,7 +1177,8 @@ void start_android_device(void)
...
@@ -1177,7 +1177,8 @@ void start_android_device(void)
{
{
void
*
ret_ptr
;
void
*
ret_ptr
;
ULONG
ret_len
;
ULONG
ret_len
;
thread
=
ULongToHandle
(
KeUserModeCallback
(
client_start_device
,
NULL
,
0
,
&
ret_ptr
,
&
ret_len
));
KeUserModeCallback
(
client_start_device
,
NULL
,
0
,
&
ret_ptr
,
&
ret_len
);
if
(
ret_len
==
sizeof
(
thread
))
thread
=
*
(
HANDLE
*
)
ret_ptr
;
}
}
...
...
dlls/wineandroid.drv/dllmain.c
View file @
be44253c
...
@@ -34,7 +34,6 @@ WINE_DEFAULT_DEBUG_CHANNEL(android);
...
@@ -34,7 +34,6 @@ WINE_DEFAULT_DEBUG_CHANNEL(android);
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
;
static
HANDLE
thread
;
static
NTSTATUS
WINAPI
ioctl_callback
(
DEVICE_OBJECT
*
device
,
IRP
*
irp
)
static
NTSTATUS
WINAPI
ioctl_callback
(
DEVICE_OBJECT
*
device
,
IRP
*
irp
)
...
@@ -97,10 +96,10 @@ static NTSTATUS WINAPI android_start_device(void *param, ULONG size)
...
@@ -97,10 +96,10 @@ static NTSTATUS WINAPI android_start_device(void *param, ULONG size)
HANDLE
handles
[
2
];
HANDLE
handles
[
2
];
handles
[
0
]
=
CreateEventW
(
NULL
,
TRUE
,
FALSE
,
NULL
);
handles
[
0
]
=
CreateEventW
(
NULL
,
TRUE
,
FALSE
,
NULL
);
handles
[
1
]
=
thread
=
CreateThread
(
NULL
,
0
,
device_thread
,
handles
[
0
],
0
,
NULL
);
handles
[
1
]
=
CreateThread
(
NULL
,
0
,
device_thread
,
handles
[
0
],
0
,
NULL
);
WaitForMultipleObjects
(
2
,
handles
,
FALSE
,
INFINITE
);
WaitForMultipleObjects
(
2
,
handles
,
FALSE
,
INFINITE
);
CloseHandle
(
handles
[
0
]
);
CloseHandle
(
handles
[
0
]
);
return
HandleToULong
(
thread
);
return
NtCallbackReturn
(
&
handles
[
1
],
sizeof
(
handles
[
1
]),
STATUS_SUCCESS
);
}
}
...
...
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