rpcrt4: When an exception is raised, return the stored exception code instead of the generic RPC_S_CALL_FAILED.

This commit is contained in:
Rob Shearman 2007-06-25 14:25:39 +01:00 committed by Alexandre Julliard
parent 2de3d31a7a
commit 62c49bdd18

View File

@ -925,7 +925,7 @@ RPC_STATUS WINAPI I_RpcSend(PRPC_MESSAGE pMsg)
if (bind->server) {
if (pMsg->RpcFlags & WINE_RPCFLAG_EXCEPTION) {
hdr = RPCRT4_BuildFaultHeader(pMsg->DataRepresentation,
RPC_S_CALL_FAILED);
*(DWORD *)pMsg->Buffer);
} else {
hdr = RPCRT4_BuildResponseHeader(pMsg->DataRepresentation,
pMsg->BufferLength);