Replace HRESULT with ResultCode in winerror_cross_platform.h

This commit is contained in:
fwcd 2019-04-06 13:53:41 +02:00
commit 7bc0cca6fd

View file

@ -1,8 +1,6 @@
#pragma once #pragma once
#include <cstdint> #include "CalcErr.h"
typedef int32_t HRESULT;
#define E_ACCESSDENIED 0x80070005 #define E_ACCESSDENIED 0x80070005
#define E_FAIL 0x80004005 #define E_FAIL 0x80004005
@ -14,6 +12,6 @@ typedef int32_t HRESULT;
#define S_OK 0x0 #define S_OK 0x0
#define S_FALSE 0x1 #define S_FALSE 0x1
#define SUCCEEDED(hr) (((HRESULT)(hr)) >= 0) #define SUCCEEDED(hr) (((ResultCode)(hr)) >= 0)
#define FAILED(hr) (((HRESULT)(hr)) < 0) #define FAILED(hr) (((ResultCode)(hr)) < 0)
#define SCODE_CODE(sc) ((sc) & 0xFFFF) #define SCODE_CODE(sc) ((sc) & 0xFFFF)