Robert Shearman : rpcrt4: Warn if CreateNamedPipe fails.
Alexandre Julliard
julliard at wine.codeweavers.com
Sat May 20 07:26:56 CDT 2006
Module: wine
Branch: refs/heads/master
Commit: cfa769fb9fe91b071a4d9ac7dbffcc49f6c0d8fd
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=cfa769fb9fe91b071a4d9ac7dbffcc49f6c0d8fd
Author: Robert Shearman <rob at codeweavers.com>
Date: Fri May 19 11:03:29 2006 +0100
rpcrt4: Warn if CreateNamedPipe fails.
---
dlls/rpcrt4/rpc_transport.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/dlls/rpcrt4/rpc_transport.c b/dlls/rpcrt4/rpc_transport.c
index 447cbd8..b4e71e7 100644
--- a/dlls/rpcrt4/rpc_transport.c
+++ b/dlls/rpcrt4/rpc_transport.c
@@ -89,6 +89,11 @@ static RPC_STATUS rpcrt4_connect_pipe(Rp
PIPE_TYPE_MESSAGE | PIPE_READMODE_MESSAGE,
PIPE_UNLIMITED_INSTANCES,
RPC_MAX_PACKET_SIZE, RPC_MAX_PACKET_SIZE, 5000, NULL);
+ if (npc->pipe == INVALID_HANDLE_VALUE) {
+ WARN("CreateNamedPipe failed with error %ld\n", GetLastError());
+ return RPC_S_SERVER_UNAVAILABLE;
+ }
+
memset(&npc->ovl, 0, sizeof(npc->ovl));
npc->ovl.hEvent = CreateEventW(NULL, TRUE, FALSE, NULL);
if (ConnectNamedPipe(npc->pipe, &npc->ovl))
More information about the wine-cvs
mailing list