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

    r1546 r1627  
    6868  23 Oct 10 GKY Add menu items for opening directory cnrs based on path of selected item
    6969                including the option to use walk directories to select path
     70  26 Aug 11 GKY Add a low mem version of xDosAlloc* wrappers; move error checking into all the
     71                xDosAlloc* wrappers.
    7072
    7173***********************************************************************/
     
    882884          else
    883885            ealen = sizeof(FEALIST) + 9;
    884           rc = xDosAllocMem((PPVOID) & pfealist, ealen + 64,
    885                             PAG_COMMIT | PAG_READ | PAG_WRITE, pszSrcFile, __LINE__);
    886           if (rc)
    887             Dos_Error(MB_CANCEL, rc, HWND_DESKTOP, pszSrcFile,
    888                       __LINE__, GetPString(IDS_OUTOFMEMORY));
    889           else {
     886          if (!xDosAllocMem((PPVOID) & pfealist, ealen + 64,
     887                            PAG_COMMIT | PAG_READ | PAG_WRITE, pszSrcFile, __LINE__)) {
    890888            memset(pfealist, 0, ealen + 1);
    891889            pfealist->cbList = ealen;
Note: See TracChangeset for help on using the changeset viewer.