summaryrefslogtreecommitdiff
path: root/PE/reinsert.cpp
diff options
context:
space:
mode:
authorpixel <pixel>2003-09-11 00:21:58 +0000
committerpixel <pixel>2003-09-11 00:21:58 +0000
commit8e1b15f1eb4171135f3fdb803fed1f8025f5f52d (patch)
treef14392d990a312a8651a9e5938b730a883a682ae /PE/reinsert.cpp
parentae612d5361b66b7bcbafae3f36d851f7624aaae6 (diff)
Whooops... Forgot to put the script size :-P
Diffstat (limited to 'PE/reinsert.cpp')
-rw-r--r--PE/reinsert.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/PE/reinsert.cpp b/PE/reinsert.cpp
index 660e81e..b4b60cf 100644
--- a/PE/reinsert.cpp
+++ b/PE/reinsert.cpp
@@ -134,6 +134,7 @@ int patch_img(cdutils * cd) {
memcpy(room + jptr, script, f->GetSize());
*((int *) (room + ptr)) = jptr | 0x01000000;
+ *((int *) (room + ptr - 4)) = f->GetSize();
cd->write_datas(room, GUESS, d_pe1.Sector + sector + s1 + s2, size);