mirror of
https://github.com/upx/upx
synced 2025-09-28 19:06:07 +08:00
Made PackHeader::magic a constant.
committer: mfx <mfx> 977428640 +0000
This commit is contained in:
parent
046df6da76
commit
f4f70634a1
|
@ -556,7 +556,6 @@ unsigned Packer::getRandomId() const
|
|||
void Packer::initPackHeader()
|
||||
{
|
||||
memset(&ph, 0, sizeof(ph));
|
||||
ph.magic = UPX_MAGIC_LE32; // "UPX!"
|
||||
ph.version = getVersion();
|
||||
ph.format = getFormat();
|
||||
ph.method = -1;
|
||||
|
|
|
@ -61,7 +61,7 @@ public:
|
|||
|
||||
public:
|
||||
// fields stored in compressed file
|
||||
unsigned magic; // UPX_MAGIC_LE32
|
||||
enum { magic = UPX_MAGIC_LE32 };
|
||||
int version;
|
||||
int format; // executable format
|
||||
int method; // compresison method
|
||||
|
|
Loading…
Reference in New Issue
Block a user