Andrew Talbot : advpack: Fix sign-compare warnings.

Alexandre Julliard julliard at winehq.org
Mon Jul 21 08:50:57 CDT 2008


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

Author: Andrew Talbot <andrew.talbot at talbotville.com>
Date:   Sat Jul 19 10:08:05 2008 +0100

advpack: Fix sign-compare warnings.

---

 dlls/advpack/install.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/advpack/install.c b/dlls/advpack/install.c
index c5a5df0..0ec5ceb 100644
--- a/dlls/advpack/install.c
+++ b/dlls/advpack/install.c
@@ -39,7 +39,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(advpack);
 #define SPAPI_ERROR     0xE0000000L
 #define SPAPI_PREFIX    0x800F0000L
 #define SPAPI_MASK      0xFFFFL
-#define HRESULT_FROM_SPAPI(x)   ((x & SPAPI_MASK) | SPAPI_PREFIX)
+#define HRESULT_FROM_SPAPI(x)   ((HRESULT)((x & SPAPI_MASK) | SPAPI_PREFIX))
 
 #define ADV_HRESULT(x)  ((x & SPAPI_ERROR) ? HRESULT_FROM_SPAPI(x) : HRESULT_FROM_WIN32(x))
 




More information about the wine-cvs mailing list