- Remove an erroneous check in NdrSendReceive.

- Change fixmes.
This commit is contained in:
Gregory M. Turner 2003-10-21 23:49:57 +00:00 committed by Alexandre Julliard
parent ea469ad7fd
commit ad24c5599e
1 changed files with 2 additions and 5 deletions

View File

@ -266,16 +266,13 @@ unsigned char *WINAPI NdrSendReceive( MIDL_STUB_MESSAGE *stubmsg, unsigned char
ERR("RPC Message not present in stub message. No action taken.\n"); ERR("RPC Message not present in stub message. No action taken.\n");
return NULL; return NULL;
} }
if (stubmsg->RpcMsg->Buffer != buffer) {
ERR("Ambiguous buffer doesn't match rpc message buffer. No action taken.\n");
return NULL;
}
/* not sure where MS does this; for now I'll stick it here */ /* FIXME: Seems wrong. Where should this really come from, and when? */
stubmsg->RpcMsg->DataRepresentation = NDR_LOCAL_DATA_REPRESENTATION; stubmsg->RpcMsg->DataRepresentation = NDR_LOCAL_DATA_REPRESENTATION;
if (I_RpcSendReceive(stubmsg->RpcMsg) != RPC_S_OK) { if (I_RpcSendReceive(stubmsg->RpcMsg) != RPC_S_OK) {
WARN("I_RpcSendReceive did not return success.\n"); WARN("I_RpcSendReceive did not return success.\n");
/* FIXME: raise exception? */
} }
/* FIXME: is this the right return value? */ /* FIXME: is this the right return value? */