From a5750a1fdf05960d03ad3fc30dd3e3a1c70408bb Mon Sep 17 00:00:00 2001 From: Hans Leidekker Date: Mon, 12 Nov 2012 11:46:53 +0100 Subject: [PATCH] rpcrt4: Implement RpcMgmtIsServerListening. --- dlls/rpcrt4/rpc_server.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/dlls/rpcrt4/rpc_server.c b/dlls/rpcrt4/rpc_server.c index 91b77076e38..4789d8a7ec3 100644 --- a/dlls/rpcrt4/rpc_server.c +++ b/dlls/rpcrt4/rpc_server.c @@ -1663,8 +1663,14 @@ RPC_STATUS WINAPI RpcMgmtEpEltInqBegin(RPC_BINDING_HANDLE Binding, ULONG Inquiry */ RPC_STATUS WINAPI RpcMgmtIsServerListening(RPC_BINDING_HANDLE Binding) { - FIXME("(%p): stub\n", Binding); - return RPC_S_INVALID_BINDING; + RPC_STATUS status = RPC_S_NOT_LISTENING; + + TRACE("(%p)\n", Binding); + + EnterCriticalSection(&listen_cs); + if (manual_listen_count > 0) status = RPC_S_OK; + LeaveCriticalSection(&listen_cs); + return status; } /***********************************************************************