Fixed alignment problem with VERSION_INFO members.
This commit is contained in:
parent
376ec88e85
commit
f030d7527a
|
@ -172,12 +172,13 @@ typedef struct
|
|||
#define VersionInfoIs16( ver ) \
|
||||
( ((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 ) \
|
||||
DWORD_ALIGN( (ver)->szKey + lstrlenA((ver)->szKey) + 1 )
|
||||
DWORD_ALIGN( (ver), (ver)->szKey + lstrlenA((ver)->szKey) + 1 )
|
||||
#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 ) \
|
||||
(VS_VERSION_INFO_STRUCT16 *)( VersionInfo16_Value( ver ) + \
|
||||
|
|
Loading…
Reference in New Issue