Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-fonts
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
Aleksandr Isakov
wine-fonts
Commits
43bb9c57
Commit
43bb9c57
authored
Jun 08, 2018
by
Zebediah Figura
Committed by
Vitaly Lipatov
Jul 30, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpcrt4: Avoid closing the server thread handle while it is being waited on.
This, or something like this, should go upstream. This is invalid behaviour.
parent
f194d453
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
rpc_server.c
dlls/rpcrt4/rpc_server.c
+4
-4
No files found.
dlls/rpcrt4/rpc_server.c
View file @
43bb9c57
...
...
@@ -699,10 +699,6 @@ static DWORD CALLBACK RPCRT4_server_thread(LPVOID the_arg)
}
LeaveCriticalSection
(
&
cps
->
cs
);
EnterCriticalSection
(
&
listen_cs
);
CloseHandle
(
cps
->
server_thread
);
cps
->
server_thread
=
NULL
;
LeaveCriticalSection
(
&
listen_cs
);
TRACE
(
"done
\n
"
);
return
0
;
}
...
...
@@ -1570,7 +1566,10 @@ RPC_STATUS WINAPI RpcMgmtWaitServerListen( void )
LIST_FOR_EACH_ENTRY
(
protseq
,
&
protseqs
,
RpcServerProtseq
,
entry
)
{
if
((
wait_thread
=
protseq
->
server_thread
))
{
protseq
->
server_thread
=
NULL
;
break
;
}
}
LeaveCriticalSection
(
&
server_cs
);
if
(
!
wait_thread
)
...
...
@@ -1579,6 +1578,7 @@ RPC_STATUS WINAPI RpcMgmtWaitServerListen( void )
TRACE
(
"waiting for thread %lu
\n
"
,
GetThreadId
(
wait_thread
));
LeaveCriticalSection
(
&
listen_cs
);
WaitForSingleObject
(
wait_thread
,
INFINITE
);
CloseHandle
(
wait_thread
);
EnterCriticalSection
(
&
listen_cs
);
}
if
(
listen_done_event
==
event
)
...
...
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