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
31c61075
Commit
31c61075
authored
Dec 12, 2023
by
Rémi Bernon
Committed by
Alexandre Julliard
Dec 12, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winebus: Return backend init status from bus_main_thread_start.
Wine-Bug:
https://bugs.winehq.org/show_bug.cgi?id=54361
parent
7cd2821d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
main.c
dlls/winebus.sys/main.c
+5
-1
No files found.
dlls/winebus.sys/main.c
View file @
31c61075
...
...
@@ -542,6 +542,7 @@ struct bus_main_params
void
*
init_args
;
HANDLE
init_done
;
NTSTATUS
*
init_status
;
unsigned
int
init_code
;
unsigned
int
wait_code
;
struct
bus_event
*
bus_event
;
...
...
@@ -555,6 +556,7 @@ static DWORD CALLBACK bus_main_thread(void *args)
TRACE
(
"%s main loop starting
\n
"
,
debugstr_w
(
bus
.
name
));
status
=
winebus_call
(
bus
.
init_code
,
bus
.
init_args
);
*
bus
.
init_status
=
status
;
SetEvent
(
bus
.
init_done
);
TRACE
(
"%s main loop started
\n
"
,
debugstr_w
(
bus
.
name
));
...
...
@@ -603,6 +605,7 @@ static DWORD CALLBACK bus_main_thread(void *args)
static
NTSTATUS
bus_main_thread_start
(
struct
bus_main_params
*
bus
)
{
DWORD
i
=
bus_count
++
,
max_size
;
NTSTATUS
status
;
if
(
!
(
bus
->
init_done
=
CreateEventW
(
NULL
,
FALSE
,
FALSE
,
NULL
)))
{
...
...
@@ -620,6 +623,7 @@ static NTSTATUS bus_main_thread_start(struct bus_main_params *bus)
return
STATUS_UNSUCCESSFUL
;
}
bus
->
init_status
=
&
status
;
if
(
!
(
bus_thread
[
i
]
=
CreateThread
(
NULL
,
0
,
bus_main_thread
,
bus
,
0
,
NULL
)))
{
ERR
(
"failed to create %s bus thread.
\n
"
,
debugstr_w
(
bus
->
name
));
...
...
@@ -630,7 +634,7 @@ static NTSTATUS bus_main_thread_start(struct bus_main_params *bus)
WaitForSingleObject
(
bus
->
init_done
,
INFINITE
);
CloseHandle
(
bus
->
init_done
);
return
STATUS_SUCCESS
;
return
status
;
}
static
void
sdl_bus_free_mappings
(
struct
sdl_bus_options
*
options
)
...
...
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