Changeset 21658 for trunk/src


Ignore:
Timestamp:
Jun 27, 2011, 5:18:53 PM (14 years ago)
Author:
dmik
Message:

odincrt: DosQueryModuleHandleStrict(): Check for out of memory when allocating the internal buffer.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/odincrt/dos.cpp

    r21605 r21658  
    101101    // ones loaded due to this effect.
    102102    char *buf = (char *)malloc(64 * 1024);
     103    if (buf == NULL)
     104        return ERROR_NOT_ENOUGH_MEMORY;
     105
    103106    arc = DosQuerySysState(QS_PROCESS | QS_MTE, QS_MTE,
    104107                           ppib->pib_ulpid, 0, buf, 64 * 1024);
Note: See TracChangeset for help on using the changeset viewer.