Changeset 1627 for trunk/dll/autoview.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/autoview.c

    r1616 r1627  
    3737  17 JAN 10 GKY Changes to get working with Watcom 1.9 Beta (1/16/10). Mostly cast CHAR CONSTANT * as CHAR *.
    3838  13 Aug 11 GKY Change to Doxygen comment format
     39  26 Aug 11 GKY Add a low mem version of xDosAlloc* wrappers; move error checking into all the
     40                xDosAlloc* wrappers.
    3941
    4042***********************************************************************/
     
    144146  }
    145147
    146   rc = xDosAllocMem((PPVOID) & pfealist, ealen, PAG_COMMIT | PAG_READ |
    147                     PAG_WRITE, pszSrcFile, __LINE__);
    148   if (rc || !pfealist)
    149     Dos_Error(MB_CANCEL, rc, hwnd, pszSrcFile, __LINE__,
    150               GetPString(IDS_OUTOFMEMORY));
     148  if (xDosAllocMem((PPVOID) &pfealist, ealen, PAG_COMMIT | PAG_READ |
     149                   PAG_WRITE, pszSrcFile, __LINE__))
     150    ret = FALSE;
    151151  else {
    152152    memset(pfealist, 0, ealen);
Note: See TracChangeset for help on using the changeset viewer.