rpcrt4: Add some more RPC to NCA status code mappings.
Add RPC_S_SEC_PKG_ERROR to the list of "hard" errors.
This commit is contained in:
parent
96937e04a2
commit
d212adbf10
|
@ -301,6 +301,12 @@ NCA_STATUS RPC2NCA_STATUS(RPC_STATUS status)
|
|||
case RPC_S_INVALID_BOUND: return NCA_S_FAULT_INVALID_BOUND;
|
||||
case RPC_S_PROCNUM_OUT_OF_RANGE: return NCA_S_OP_RNG_ERROR;
|
||||
case RPC_X_SS_HANDLES_MISMATCH: return NCA_S_FAULT_CONTEXT_MISMATCH;
|
||||
case RPC_S_CALL_CANCELLED: return NCA_S_FAULT_CANCEL;
|
||||
case RPC_S_COMM_FAILURE: return NCA_S_COMM_FAILURE;
|
||||
case RPC_X_WRONG_PIPE_ORDER: return NCA_S_FAULT_PIPE_ORDER;
|
||||
case RPC_X_PIPE_CLOSED: return NCA_S_FAULT_PIPE_CLOSED;
|
||||
case RPC_X_PIPE_DISCIPLINE_ERROR: return NCA_S_FAULT_PIPE_DISCIPLINE;
|
||||
case RPC_X_PIPE_EMPTY: return NCA_S_FAULT_PIPE_EMPTY;
|
||||
case STATUS_FLOAT_DIVIDE_BY_ZERO: return NCA_S_FAULT_FP_DIV_ZERO;
|
||||
case STATUS_FLOAT_INVALID_OPERATION: return NCA_S_FAULT_FP_ERROR;
|
||||
case STATUS_FLOAT_OVERFLOW: return NCA_S_FAULT_FP_OVERFLOW;
|
||||
|
@ -1013,6 +1019,7 @@ static inline BOOL is_hard_error(RPC_STATUS status)
|
|||
case RPC_S_PROTOCOL_ERROR:
|
||||
case RPC_S_CALL_FAILED:
|
||||
case RPC_S_CALL_FAILED_DNE:
|
||||
case RPC_S_SEC_PKG_ERROR:
|
||||
return TRUE;
|
||||
default:
|
||||
return FALSE;
|
||||
|
|
Loading…
Reference in New Issue