Ignore:
Timestamp:
Jul 11, 2009, 10:46:36 PM (16 years ago)
Author:
vladest
Message:
  1. Fixed Flash10 installer (bad pointer passed to GlobalFree)
  2. Autocommit improoved. Added address and size alignment. Added return code check
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kernel32/exceptions.cpp

    r21329 r21337  
    13341334            accessflag &=~PAG_GUARD;
    13351335
    1336         DosSetMem((PVOID) pERepRec->ExceptionInfo[1], offset,
     1336        /* set memory aligned on page size and with size counting alignment */
     1337        ULONG rc = DosSetMem((PVOID) (pERepRec->ExceptionInfo[1] & 0xFFFFF000),
     1338                             offset + (pERepRec->ExceptionInfo[1] - (pERepRec->ExceptionInfo[1] & 0xFFFFF000)),
    13371339                  accessflag | PAG_WRITE | PAG_COMMIT);
    1338         dprintf(("KERNEL32: OS2ExceptionHandler: commiting 0x%X size 0x%X\n",
    1339                  pERepRec->ExceptionInfo[1], offset));
    1340         goto continueexecution;
     1340        dprintf(("KERNEL32: OS2ExceptionHandler: commiting 0x%X size 0x%X. RC: %i\n",
     1341                 pERepRec->ExceptionInfo[1] & 0xFFFFF000,
     1342                 offset + (pERepRec->ExceptionInfo[1] - (pERepRec->ExceptionInfo[1] & 0xFFFFF000)),
     1343                           rc));
     1344        if (NO_ERROR == rc)
     1345            goto continueexecution;
     1346        else
     1347            goto CrashAndBurn;
    13411348    }
    13421349
Note: See TracChangeset for help on using the changeset viewer.