diff options
Diffstat (limited to 'PE')
-rw-r--r-- | PE/reinsert.cpp | 1 |
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); |