Made PackHeader::magic a constant.
committer: mfx <mfx> 977428640 +0000
This commit is contained in:
@@ -556,7 +556,6 @@ unsigned Packer::getRandomId() const
|
|||||||
void Packer::initPackHeader()
|
void Packer::initPackHeader()
|
||||||
{
|
{
|
||||||
memset(&ph, 0, sizeof(ph));
|
memset(&ph, 0, sizeof(ph));
|
||||||
ph.magic = UPX_MAGIC_LE32; // "UPX!"
|
|
||||||
ph.version = getVersion();
|
ph.version = getVersion();
|
||||||
ph.format = getFormat();
|
ph.format = getFormat();
|
||||||
ph.method = -1;
|
ph.method = -1;
|
||||||
|
|||||||
+1
-1
@@ -61,7 +61,7 @@ public:
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
// fields stored in compressed file
|
// fields stored in compressed file
|
||||||
unsigned magic; // UPX_MAGIC_LE32
|
enum { magic = UPX_MAGIC_LE32 };
|
||||||
int version;
|
int version;
|
||||||
int format; // executable format
|
int format; // executable format
|
||||||
int method; // compresison method
|
int method; // compresison method
|
||||||
|
|||||||
Reference in New Issue
Block a user