Fix the previous fix.


svn path=/trunk/; revision=67588
This commit is contained in:
Aleksandar Andrejevic 2015-05-07 00:53:47 +00:00
parent 17fd1cc052
commit 194530e567

View file

@ -409,8 +409,8 @@ DWORD DosLoadExecutable(IN DOS_EXEC_TYPE LoadType,
Header = (PIMAGE_DOS_HEADER)Address;
/* Get the base size of the file, in paragraphs (rounded up) */
BaseSize = (((Header->e_cp - (Header->e_cblp != 0)) * 512)
+ Header->e_cblp - Header->e_cparhdr + 0x0F) >> 4;
BaseSize = ((((Header->e_cp - (Header->e_cblp != 0)) * 512)
+ Header->e_cblp + 0x0F) >> 4) - Header->e_cparhdr;
if (LoadType != DOS_LOAD_OVERLAY)
{