Rob Shearman : rpcrt4: Print error messages from RPC message functions when they are called in an invalid way .
Alexandre Julliard
julliard at winehq.org
Mon Sep 15 06:54:00 CDT 2008
Module: wine
Branch: master
Commit: be9909ad1d882d8a820ad032d0e982bc9041b2a5
URL: http://source.winehq.org/git/wine.git/?a=commit;h=be9909ad1d882d8a820ad032d0e982bc9041b2a5
Author: Rob Shearman <robertshearman at gmail.com>
Date: Fri Sep 12 12:59:02 2008 +0100
rpcrt4: Print error messages from RPC message functions when they are called in an invalid way.
---
dlls/rpcrt4/rpc_message.c | 12 +++++++++++-
1 files changed, 11 insertions(+), 1 deletions(-)
diff --git a/dlls/rpcrt4/rpc_message.c b/dlls/rpcrt4/rpc_message.c
index 48c7df0..a82f4be 100644
--- a/dlls/rpcrt4/rpc_message.c
+++ b/dlls/rpcrt4/rpc_message.c
@@ -1005,7 +1005,10 @@ RPC_STATUS WINAPI I_RpcNegotiateTransferSyntax(PRPC_MESSAGE pMsg)
TRACE("(%p)\n", pMsg);
if (!bind || bind->server)
+ {
+ ERR("no binding\n");
return RPC_S_INVALID_BINDING;
+ }
/* if we already have a connection, we don't need to negotiate again */
if (!pMsg->ReservedForRuntime)
@@ -1065,7 +1068,10 @@ RPC_STATUS WINAPI I_RpcGetBuffer(PRPC_MESSAGE pMsg)
TRACE("(%p): BufferLength=%d\n", pMsg, pMsg->BufferLength);
if (!bind)
+ {
+ ERR("no binding\n");
return RPC_S_INVALID_BINDING;
+ }
pMsg->Buffer = I_RpcAllocate(pMsg->BufferLength);
TRACE("Buffer=%p\n", pMsg->Buffer);
@@ -1118,7 +1124,11 @@ RPC_STATUS WINAPI I_RpcFreeBuffer(PRPC_MESSAGE pMsg)
TRACE("(%p) Buffer=%p\n", pMsg, pMsg->Buffer);
- if (!bind) return RPC_S_INVALID_BINDING;
+ if (!bind)
+ {
+ ERR("no binding\n");
+ return RPC_S_INVALID_BINDING;
+ }
if (pMsg->ReservedForRuntime)
{
More information about the wine-cvs
mailing list