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

    r1520 r1627  
    2727  19 Oct 09 SHL Correct copyf regression when moving to save volume
    2828  31 Mar 10 JBS Correct copyf which was creating 8.4, not 8.3, temporary names
     29  26 Aug 11 GKY Add a low mem version of xDosAlloc* wrappers; move error checking into all the
     30                xDosAlloc* wrappers.
    2931
    3032***********************************************************************/
     
    326328  else
    327329    ealen = sizeof(FEALIST) + 10;
    328   rc = xDosAllocMem((PPVOID) & pfealist,
    329                     ealen + 32L, PAG_COMMIT | PAG_READ | PAG_WRITE,
    330                     pszSrcFile, __LINE__);
    331   if (rc)
    332     Dos_Error(MB_CANCEL, rc, HWND_DESKTOP, pszSrcFile, __LINE__,
    333               GetPString(IDS_OUTOFMEMORY));
     330  if (xDosAllocMem((PPVOID) &pfealist,
     331                   ealen + 32L, PAG_COMMIT | PAG_READ | PAG_WRITE,
     332                   pszSrcFile, __LINE__))
     333    return FALSE;
    334334  else {
    335335    memset(pfealist, 0, ealen + 1);
Note: See TracChangeset for help on using the changeset viewer.