Skip to content
Snippets Groups Projects
Commit e533a3f1 authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard
Browse files

Added IS_ERROR.

parent 8367bafb
No related branches found
No related tags found
No related merge requests found
......@@ -26,6 +26,7 @@ extern int WIN32_LastError;
((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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment