commit | e533a3f1300511c9283d6293807fcc33bf85a2d2 | [log] [tgz] |
---|---|---|
author | Francois Gouget <fgouget@codeweavers.com> | Mon May 07 18:14:10 2001 +0000 |
committer | Alexandre Julliard <julliard@winehq.org> | Mon May 07 18:14:10 2001 +0000 |
tree | f7d7021ff9b4630566aebc0e4a38e60dbdcb3be4 | |
parent | 8367bafb1acb31a0c5fc60fb82072cd382fc63cd [diff] [blame] |
Added IS_ERROR.
diff --git a/include/winerror.h b/include/winerror.h index 8bbeed2..b957a94 100644 --- a/include/winerror.h +++ b/include/winerror.h
@@ -26,6 +26,7 @@ ((SCODE) (((unsigned long)(sev)<<31) | ((unsigned long)(fac)<<16) | ((unsigned long)(code))) ) #define SUCCEEDED(stat) ((HRESULT)(stat)>=0) #define FAILED(stat) ((HRESULT)(stat)<0) +#define IS_ERROR(stat) (((unsigned long)(stat)>>31) == SEVERITY_ERROR) #define HRESULT_CODE(hr) ((hr) & 0xFFFF) #define SCODE_CODE(sc) ((sc) & 0xFFFF)