mirror of
https://github.com/Microsoft/calculator.git
synced 2025-08-22 14:13:30 -07:00
Replace HRESULT with ResultCode in winerror_cross_platform.h
This commit is contained in:
parent
10a9a9f2d1
commit
7bc0cca6fd
1 changed files with 3 additions and 5 deletions
|
@ -1,8 +1,6 @@
|
|||
#pragma once
|
||||
|
||||
#include <cstdint>
|
||||
|
||||
typedef int32_t HRESULT;
|
||||
#include "CalcErr.h"
|
||||
|
||||
#define E_ACCESSDENIED 0x80070005
|
||||
#define E_FAIL 0x80004005
|
||||
|
@ -14,6 +12,6 @@ typedef int32_t HRESULT;
|
|||
#define S_OK 0x0
|
||||
#define S_FALSE 0x1
|
||||
|
||||
#define SUCCEEDED(hr) (((HRESULT)(hr)) >= 0)
|
||||
#define FAILED(hr) (((HRESULT)(hr)) < 0)
|
||||
#define SUCCEEDED(hr) (((ResultCode)(hr)) >= 0)
|
||||
#define FAILED(hr) (((ResultCode)(hr)) < 0)
|
||||
#define SCODE_CODE(sc) ((sc) & 0xFFFF)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue