From 8e1b15f1eb4171135f3fdb803fed1f8025f5f52d Mon Sep 17 00:00:00 2001 From: pixel Date: Thu, 11 Sep 2003 00:21:58 +0000 Subject: Whooops... Forgot to put the script size :-P --- PE/reinsert.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'PE') 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); -- cgit v1.2.3