Missing IS_ERROR in winerror.h

François Gouget fgouget at codeweavers.com
Sat May 5 15:10:24 CDT 2001


Changelog:

   François Gouget <fgouget at codeweavers.com>

 * include/winerror.h
   Add IS_ERROR to winerror.h
   Fixes bug #180 reported by Andres Kruse

-- 
François Gouget
fgouget at codeweavers.com
-------------- next part --------------
Index: include/winerror.h
===================================================================
RCS file: /home/cvs/wine/wine/include/winerror.h,v
retrieving revision 1.34
diff -u -r1.34 winerror.h
--- include/winerror.h	2001/04/12 21:10:54	1.34
+++ include/winerror.h	2001/05/05 19:55:07
@@ -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)


More information about the wine-patches mailing list