rpcrt4: Return the actual status code sent back by the server, rather than RPC_S_CALL_FAILED.

This commit is contained in:
Robert Shearman 2006-05-26 15:52:09 +01:00 committed by Alexandre Julliard
parent 9d5849d9bd
commit 8b56e88276
1 changed files with 2 additions and 2 deletions

View File

@ -754,8 +754,8 @@ RPC_STATUS WINAPI I_RpcReceive(PRPC_MESSAGE pMsg)
break;
case PKT_FAULT:
pMsg->RpcFlags |= WINE_RPCFLAG_EXCEPTION;
ERR ("we got fault packet with status %lx\n", hdr->fault.status);
status = RPC_S_CALL_FAILED; /* ? */
ERR ("we got fault packet with status 0x%lx\n", hdr->fault.status);
status = hdr->fault.status; /* FIXME: do translation from nca error codes */
goto fail;
default:
WARN("bad packet type %d\n", hdr->common.ptype);