Michael Stefaniuc : include: Replace unsigned long with unsigned int in winerror.h.

Alexandre Julliard julliard at winehq.org
Mon Jan 12 10:40:38 CST 2009


Module: wine
Branch: master
Commit: de97ce150ce24699f94e38f8b6624e1d71f6d13b
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=de97ce150ce24699f94e38f8b6624e1d71f6d13b

Author: Michael Stefaniuc <mstefani at redhat.de>
Date:   Sun Jan 11 00:16:47 2009 +0100

include: Replace unsigned long with unsigned int in winerror.h.

---

 include/winerror.h |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/include/winerror.h b/include/winerror.h
index 5d32374..c7427d7 100644
--- a/include/winerror.h
+++ b/include/winerror.h
@@ -65,12 +65,12 @@
 
 
 #define MAKE_HRESULT(sev,fac,code) \
-    ((HRESULT) (((unsigned long)(sev)<<31) | ((unsigned long)(fac)<<16) | ((unsigned long)(code))) )
+    ((HRESULT) (((unsigned int)(sev)<<31) | ((unsigned int)(fac)<<16) | ((unsigned int)(code))) )
 #define MAKE_SCODE(sev,fac,code) \
-        ((SCODE) (((unsigned long)(sev)<<31) | ((unsigned long)(fac)<<16) | ((unsigned long)(code))) )
+        ((SCODE) (((unsigned int)(sev)<<31) | ((unsigned int)(fac)<<16) | ((unsigned int)(code))) )
 #define SUCCEEDED(stat) ((HRESULT)(stat)>=0)
 #define FAILED(stat) ((HRESULT)(stat)<0)
-#define IS_ERROR(stat) (((unsigned long)(stat)>>31) == SEVERITY_ERROR)
+#define IS_ERROR(stat) (((unsigned int)(stat)>>31) == SEVERITY_ERROR)
 
 #define HRESULT_CODE(hr) ((hr) & 0xFFFF)
 #define SCODE_CODE(sc)   ((sc) & 0xFFFF)
@@ -90,7 +90,7 @@ typedef long            HRESULT;
 typedef int             HRESULT;
 # endif
 #endif
-static inline HRESULT HRESULT_FROM_WIN32(unsigned long x)
+static inline HRESULT HRESULT_FROM_WIN32(unsigned int x)
 {
     return (HRESULT)x > 0 ? ((HRESULT) ((x & 0x0000FFFF) | (FACILITY_WIN32 << 16) | 0x80000000)) : (HRESULT)x;
 }




More information about the wine-cvs mailing list