rpcrt4: When an exception is raised, return the stored exception code instead of the generic RPC_S_CALL_FAILED.
This commit is contained in:
parent
2de3d31a7a
commit
62c49bdd18
|
@ -925,7 +925,7 @@ RPC_STATUS WINAPI I_RpcSend(PRPC_MESSAGE pMsg)
|
||||||
if (bind->server) {
|
if (bind->server) {
|
||||||
if (pMsg->RpcFlags & WINE_RPCFLAG_EXCEPTION) {
|
if (pMsg->RpcFlags & WINE_RPCFLAG_EXCEPTION) {
|
||||||
hdr = RPCRT4_BuildFaultHeader(pMsg->DataRepresentation,
|
hdr = RPCRT4_BuildFaultHeader(pMsg->DataRepresentation,
|
||||||
RPC_S_CALL_FAILED);
|
*(DWORD *)pMsg->Buffer);
|
||||||
} else {
|
} else {
|
||||||
hdr = RPCRT4_BuildResponseHeader(pMsg->DataRepresentation,
|
hdr = RPCRT4_BuildResponseHeader(pMsg->DataRepresentation,
|
||||||
pMsg->BufferLength);
|
pMsg->BufferLength);
|
||||||
|
|
Loading…
Reference in New Issue