Changeset 1627 for trunk/dll/subj.c


Ignore:
Timestamp:
Aug 26, 2011, 11:48:06 PM (14 years ago)
Author:
Gregg Young
Message:

Add a low mem version of xDosAlloc* wrappers; move error checking into all the xDosAlloc* wrappers. Ticket 471

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/subj.c

    r1480 r1627  
    1616  08 Mar 09 GKY Additional strings move to PCSZs
    1717  12 Jul 09 GKY Add xDosQueryAppType and xDosAlloc... to allow FM/2 to load in high memory
     18  26 Aug 11 GKY Add a low mem version of xDosAlloc* wrappers; move error checking into all the
     19                xDosAlloc* wrappers.
    1820
    1921***********************************************************************/
     
    126128      else
    127129        ealen = sizeof(FEALIST) + 9;
    128       rc = xDosAllocMem((PPVOID) & pfealist, ealen + 1L,
    129                         PAG_COMMIT | PAG_READ | PAG_WRITE, pszSrcFile, __LINE__);
    130       if (rc)
    131         Dos_Error(MB_CANCEL, rc, hwnd, pszSrcFile, __LINE__,
    132                   GetPString(IDS_OUTOFMEMORY));
    133       else {
     130      if (!xDosAllocMem((PPVOID) & pfealist, ealen + 1L,
     131                        PAG_COMMIT | PAG_READ | PAG_WRITE, pszSrcFile, __LINE__)) {
    134132        memset(pfealist, 0, ealen + 1);
    135133        pfealist->cbList = ealen;
Note: See TracChangeset for help on using the changeset viewer.