From ecce4d65781d69a64f37cabefce5687cc115d0af Mon Sep 17 00:00:00 2001 From: "Markus F.X.J. Oberhumer" Date: Wed, 17 Jan 2001 18:38:10 +0000 Subject: [PATCH] Reset patch order in writePackHeader(). committer: mfx 979756690 +0000 --- src/p_unix.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/p_unix.cpp b/src/p_unix.cpp index 5e3c4d1c..823b744a 100644 --- a/src/p_unix.cpp +++ b/src/p_unix.cpp @@ -87,7 +87,10 @@ void PackUnix::writePackHeader(OutputFile *fo) set_le32(buf+0, UPX_MAGIC_LE32); set_le32(buf+4, UPX_MAGIC2_LE32); + checkPatch(NULL, 0, 0, 0); patchPackHeader(buf, hsize); + checkPatch(NULL, 0, 0, 0); + fo->write(buf, hsize); }