* block_header::offset is now pointer sized in exehead
* Wininet.h -> wininet.h for POSIX git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6608 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
286edd20c4
commit
940277d9d8
10 changed files with 83 additions and 41 deletions
|
@ -209,6 +209,8 @@ enum
|
|||
#endif
|
||||
};
|
||||
|
||||
#pragma pack(push, 1) // fileform.cpp assumes no padding/alignment
|
||||
|
||||
#define FH_FLAGS_MASK 15
|
||||
#define FH_FLAGS_UNINSTALL 1
|
||||
#ifdef NSIS_CONFIG_SILENT_SUPPORT
|
||||
|
@ -258,7 +260,11 @@ typedef struct
|
|||
|
||||
// nsis blocks
|
||||
struct block_header {
|
||||
/*UINT_PTR*/ int offset; // BUGBUG: This should probably be UINT_PTR but that currently crashes :(
|
||||
#ifdef MAKENSIS
|
||||
int offset;
|
||||
#else
|
||||
UINT_PTR offset; // exehead stores a memory location here so it needs to be pointer sized
|
||||
#endif
|
||||
int num;
|
||||
};
|
||||
|
||||
|
@ -286,7 +292,7 @@ typedef TCHAR NSIS_STRING[NSIS_MAX_STRLEN];
|
|||
typedef struct
|
||||
{
|
||||
int flags; // CH_FLAGS_*
|
||||
struct block_header blocks[BLOCKS_NUM];
|
||||
struct block_header blocks[BLOCKS_NUM]; // CEXEBuild::get_header_size needs to adjust the size of this based on the targets pointer size
|
||||
|
||||
// InstallDirRegKey stuff
|
||||
int install_reg_rootkey;
|
||||
|
@ -468,7 +474,6 @@ typedef struct
|
|||
#define CC_BK_SYS 8
|
||||
#define CC_BKB 16
|
||||
|
||||
#pragma pack(push, 4)
|
||||
typedef struct {
|
||||
COLORREF text;
|
||||
COLORREF bkc;
|
||||
|
@ -498,7 +503,6 @@ typedef struct {
|
|||
#else
|
||||
# define ctlcolors ctlcolors32
|
||||
#endif
|
||||
#pragma pack(pop)
|
||||
|
||||
// constants for myDelete (util.c)
|
||||
#define DEL_DIR 1
|
||||
|
@ -525,6 +529,8 @@ typedef struct {
|
|||
|
||||
#define FIELDN(x, y) (((int *)&x)[y])
|
||||
|
||||
#pragma pack(pop)
|
||||
|
||||
#ifdef EXEHEAD
|
||||
|
||||
// the following are only used/implemented in exehead, not makensis.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue