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

This commit is contained in:
Alexandre Julliard 2012-09-21 18:29:09 +02:00
parent 4c47385ea5
commit b037bd7bff
1 changed files with 1 additions and 1 deletions

View File

@ -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)