Alexandre Julliard : include: Fix the CDSIZEOF_STRUCT definition to avoid warnings on 64-bit.

Alexandre Julliard julliard at winehq.org
Fri Sep 21 14:22:40 CDT 2012


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

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Fri Sep 21 18:29:09 2012 +0200

include: Fix the CDSIZEOF_STRUCT definition to avoid warnings on 64-bit.

---

 include/commdlg.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/include/commdlg.h b/include/commdlg.h
index 3ab7078..1a6e1d9 100644
--- a/include/commdlg.h
+++ b/include/commdlg.h
@@ -130,7 +130,7 @@ DECL_WINELIB_TYPE_AW(OPENFILENAME)
 DECL_WINELIB_TYPE_AW(LPOPENFILENAME)
 
 #ifndef CDSIZEOF_STRUCT
-#define CDSIZEOF_STRUCT(type,field) ((int)&(((type *)0)->field) + sizeof(((type*)0)->field))
+#define CDSIZEOF_STRUCT(type,field) ((INT_PTR)&(((type *)0)->field) + sizeof(((type*)0)->field))
 #endif
 
 #define OPENFILENAME_SIZE_VERSION_400A CDSIZEOF_STRUCT(OPENFILENAMEA,lpTemplateName)




More information about the wine-cvs mailing list