Michael Stefaniuc : include: Make "long" numeric constants LP64/ LLP64 proof (shlwapi.h).

Alexandre Julliard julliard at winehq.org
Mon Nov 14 13:33:55 CST 2011


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

Author: Michael Stefaniuc <mstefani at redhat.de>
Date:   Thu Nov 10 01:44:04 2011 +0100

include: Make "long" numeric constants LP64/LLP64 proof (shlwapi.h).

---

 dlls/shlwapi/string.c |    4 ++--
 include/shlwapi.h     |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/dlls/shlwapi/string.c b/dlls/shlwapi/string.c
index 9578565..45b8d21 100644
--- a/dlls/shlwapi/string.c
+++ b/dlls/shlwapi/string.c
@@ -867,7 +867,7 @@ BOOL WINAPI StrToIntExA(LPCSTR lpszStr, DWORD dwFlags, LPINT lpiRet)
   }
   if (dwFlags > STIF_SUPPORT_HEX)
   {
-    WARN("Unknown flags (%08lX)!\n", dwFlags & ~STIF_SUPPORT_HEX);
+    WARN("Unknown flags (%08X)!\n", dwFlags & ~STIF_SUPPORT_HEX);
   }
 
   /* Skip leading space, '+', '-' */
@@ -937,7 +937,7 @@ BOOL WINAPI StrToIntExW(LPCWSTR lpszStr, DWORD dwFlags, LPINT lpiRet)
   }
   if (dwFlags > STIF_SUPPORT_HEX)
   {
-    WARN("Unknown flags (%08lX)!\n", dwFlags & ~STIF_SUPPORT_HEX);
+    WARN("Unknown flags (%08X)!\n", dwFlags & ~STIF_SUPPORT_HEX);
   }
 
   /* Skip leading space, '+', '-' */
diff --git a/include/shlwapi.h b/include/shlwapi.h
index bec8b3a..2ebcdc9 100644
--- a/include/shlwapi.h
+++ b/include/shlwapi.h
@@ -747,8 +747,8 @@ HRESULT WINAPI ParseURLW(LPCWSTR pszUrl, PARSEDURLW *ppu);
 #ifndef NO_SHLWAPI_STRFCNS
 
 /* StrToIntEx flags */
-#define STIF_DEFAULT     0x0L
-#define STIF_SUPPORT_HEX 0x1L
+#define STIF_DEFAULT     __MSABI_LONG(0x0)
+#define STIF_SUPPORT_HEX __MSABI_LONG(0x1)
 
 BOOL WINAPI ChrCmpIA (WORD,WORD);
 BOOL WINAPI ChrCmpIW (WCHAR,WCHAR);




More information about the wine-cvs mailing list