git-svn: trunk@2089
aCaB authored on 2006/07/17 10:05:11... | ... |
@@ -41,7 +41,6 @@ |
41 | 41 |
** |
42 | 42 |
** review |
43 | 43 |
** check eax vs al |
44 |
-** check the missed samples |
|
45 | 44 |
** (check for dll's) |
46 | 45 |
** (have a look at older versions) |
47 | 46 |
** |
... | ... |
@@ -348,6 +347,10 @@ int wwunpack(char *exe, uint32_t exesz, uint32_t headsize, uint32_t min, uint32_ |
348 | 348 |
cli_dbgmsg("WWPack: found OEP @%x\n", csize); |
349 | 349 |
cli_writeint32(stuff+0x28, csize); |
350 | 350 |
|
351 |
+ csize=cli_readint32(stuff+0x50)-VAALIGN(wwpsz); |
|
352 |
+ cli_writeint32(stuff+0x50, csize); |
|
353 |
+ |
|
354 |
+ |
|
351 | 355 |
stuff+=0xf8; |
352 | 356 |
while (sects--) { |
353 | 357 |
uint32_t v=cli_readint32(stuff+8); |