Commit f030d752 authored by Ulrich Weigand's avatar Ulrich Weigand Committed by Alexandre Julliard

Fixed alignment problem with VERSION_INFO members.

parent 376ec88e
...@@ -172,12 +172,13 @@ typedef struct ...@@ -172,12 +172,13 @@ typedef struct
#define VersionInfoIs16( ver ) \ #define VersionInfoIs16( ver ) \
( ((VS_VERSION_INFO_STRUCT16 *)ver)->szKey[0] >= ' ' ) ( ((VS_VERSION_INFO_STRUCT16 *)ver)->szKey[0] >= ' ' )
#define DWORD_ALIGN( ptr ) ((LPBYTE)( (((DWORD)(ptr)) + 3) & ~3 )) #define DWORD_ALIGN( base, ptr ) \
( (LPBYTE)(base) + ((((LPBYTE)(ptr) - (LPBYTE)(base)) + 3) & ~3) )
#define VersionInfo16_Value( ver ) \ #define VersionInfo16_Value( ver ) \
DWORD_ALIGN( (ver)->szKey + lstrlenA((ver)->szKey) + 1 ) DWORD_ALIGN( (ver), (ver)->szKey + lstrlenA((ver)->szKey) + 1 )
#define VersionInfo32_Value( ver ) \ #define VersionInfo32_Value( ver ) \
DWORD_ALIGN( (ver)->szKey + lstrlenW((ver)->szKey) + 1 ) DWORD_ALIGN( (ver), (ver)->szKey + lstrlenW((ver)->szKey) + 1 )
#define VersionInfo16_Children( ver ) \ #define VersionInfo16_Children( ver ) \
(VS_VERSION_INFO_STRUCT16 *)( VersionInfo16_Value( ver ) + \ (VS_VERSION_INFO_STRUCT16 *)( VersionInfo16_Value( ver ) + \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment