Not sure why I did this. Next time self, leave a damn comment.
This commit is contained in:
parent
e7dfbd5542
commit
2d08535672
|
@ -68,7 +68,7 @@ typedef uint32_t X_STATUS;
|
|||
// Adding as needed.
|
||||
typedef uint32_t X_RESULT;
|
||||
#define X_FACILITY_WIN32 7
|
||||
#define X_HRESULT_FROM_WIN32(x) x //((X_RESULT)(x) <= 0 ? ((X_RESULT)(x)) : ((X_RESULT) (((x) & 0x0000FFFF) | (X_FACILITY_WIN32 << 16) | 0x80000000)))
|
||||
#define X_HRESULT_FROM_WIN32(x) ((X_RESULT)(x) <= 0 ? ((X_RESULT)(x)) : ((X_RESULT) (((x) & 0x0000FFFF) | (X_FACILITY_WIN32 << 16) | 0x80000000)))
|
||||
#define X_ERROR_SUCCESS X_HRESULT_FROM_WIN32(0x00000000L)
|
||||
#define X_ERROR_ACCESS_DENIED X_HRESULT_FROM_WIN32(0x00000005L)
|
||||
#define X_ERROR_INVALID_HANDLE X_HRESULT_FROM_WIN32(0x00000006L)
|
||||
|
|
Loading…
Reference in New Issue