1
0
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:
Markus F.X.J. Oberhumer 2000-12-21 19:57:20 +00:00
parent 046df6da76
commit f4f70634a1
2 changed files with 1 additions and 2 deletions

View File

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

View File

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