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
73a68b06
Commit
73a68b06
authored
Mar 25, 2015
by
Nikolay Sivov
Committed by
Alexandre Julliard
Mar 26, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpcrt4: Fix RpcMgmtStopServerListening() return value when we're not listening.
parent
fd25d9aa
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
10 deletions
+15
-10
rpc_server.c
dlls/rpcrt4/rpc_server.c
+15
-6
rpc.c
dlls/rpcrt4/tests/rpc.c
+0
-4
No files found.
dlls/rpcrt4/rpc_server.c
View file @
73a68b06
...
...
@@ -762,9 +762,18 @@ static RPC_STATUS RPCRT4_start_listen(BOOL auto_listen)
return
status
;
}
static
void
RPCRT4_stop_listen
(
BOOL
auto_listen
)
static
RPC_STATUS
RPCRT4_stop_listen
(
BOOL
auto_listen
)
{
RPC_STATUS
status
=
RPC_S_OK
;
EnterCriticalSection
(
&
listen_cs
);
if
(
!
std_listen
)
{
status
=
RPC_S_NOT_LISTENING
;
goto
done
;
}
if
(
auto_listen
||
(
--
manual_listen_count
==
0
))
{
if
(
listen_count
!=
0
&&
--
listen_count
==
0
)
{
...
...
@@ -779,12 +788,14 @@ static void RPCRT4_stop_listen(BOOL auto_listen)
EnterCriticalSection
(
&
listen_cs
);
if
(
listen_done_event
)
SetEvent
(
listen_done_event
);
listen_done_event
=
0
;
LeaveCriticalSection
(
&
listen_cs
);
return
;
goto
done
;
}
assert
(
listen_count
>=
0
);
}
done:
LeaveCriticalSection
(
&
listen_cs
);
return
status
;
}
static
BOOL
RPCRT4_protseq_is_endpoint_registered
(
RpcServerProtseq
*
protseq
,
const
char
*
endpoint
)
...
...
@@ -1560,9 +1571,7 @@ RPC_STATUS WINAPI RpcMgmtStopServerListening ( RPC_BINDING_HANDLE Binding )
return
RPC_S_WRONG_KIND_OF_BINDING
;
}
RPCRT4_stop_listen
(
FALSE
);
return
RPC_S_OK
;
return
RPCRT4_stop_listen
(
FALSE
);
}
/***********************************************************************
...
...
dlls/rpcrt4/tests/rpc.c
View file @
73a68b06
...
...
@@ -224,10 +224,8 @@ static void test_rpc_ncacn_ip_tcp(void)
ok
(
status
==
RPC_S_OK
,
"return wrong
\n
"
);
status
=
RpcMgmtStopServerListening
(
NULL
);
todo_wine
{
ok
(
status
==
RPC_S_NOT_LISTENING
,
"wrong RpcMgmtStopServerListening error (%u)
\n
"
,
status
);
}
status
=
RpcMgmtWaitServerListen
();
ok
(
status
==
RPC_S_NOT_LISTENING
,
...
...
@@ -244,9 +242,7 @@ todo_wine {
ok
(
status
==
RPC_S_OK
,
"RpcServerRegisterIf failed (%u)
\n
"
,
status
);
status
=
RpcServerListen
(
1
,
20
,
TRUE
);
todo_wine
{
ok
(
status
==
RPC_S_OK
,
"RpcServerListen failed (%u)
\n
"
,
status
);
}
status
=
RpcServerListen
(
1
,
20
,
TRUE
);
todo_wine
{
...
...
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