rpcrt4: Return the actual status code sent back by the server, rather than RPC_S_CALL_FAILED.
This commit is contained in:
parent
9d5849d9bd
commit
8b56e88276
|
@ -754,8 +754,8 @@ RPC_STATUS WINAPI I_RpcReceive(PRPC_MESSAGE pMsg)
|
||||||
break;
|
break;
|
||||||
case PKT_FAULT:
|
case PKT_FAULT:
|
||||||
pMsg->RpcFlags |= WINE_RPCFLAG_EXCEPTION;
|
pMsg->RpcFlags |= WINE_RPCFLAG_EXCEPTION;
|
||||||
ERR ("we got fault packet with status %lx\n", hdr->fault.status);
|
ERR ("we got fault packet with status 0x%lx\n", hdr->fault.status);
|
||||||
status = RPC_S_CALL_FAILED; /* ? */
|
status = hdr->fault.status; /* FIXME: do translation from nca error codes */
|
||||||
goto fail;
|
goto fail;
|
||||||
default:
|
default:
|
||||||
WARN("bad packet type %d\n", hdr->common.ptype);
|
WARN("bad packet type %d\n", hdr->common.ptype);
|
||||||
|
|
Loading…
Reference in New Issue