As discussed in #18182 (comment) the common function SetErrorMessage which is used to set the message retrieved when using the urAdapterGetLastError entry point is expecting a ur_result_t for the ErrorCode param but should instead be int32_t, this occurs in most adapter implementations.