mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 16:36:33 +00:00
[NTVDM]
Fix the previous fix. svn path=/trunk/; revision=67588
This commit is contained in:
parent
17fd1cc052
commit
194530e567
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue