Commit 8b56e882 authored by Robert Shearman's avatar Robert Shearman Committed by Alexandre Julliard

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

parent 9d5849d9
...@@ -754,8 +754,8 @@ RPC_STATUS WINAPI I_RpcReceive(PRPC_MESSAGE pMsg) ...@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment