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

    r1544 r1627  
    1414  20 Aug 07 GKY Move #pragma alloc_text to end for OpenWatcom compat
    1515  12 Jul 09 GKY Add xDosQueryAppType and xDosAlloc... to allow FM/2 to load in high memory
     16  26 Aug 11 GKY Add a low mem version of xDosAlloc* wrappers; move error checking into all the
     17                xDosAlloc* wrappers.
    1618
    1719***********************************************************************/
     
    105107        mem = MLEgetlen(hwndMLE);
    106108        if (mem) {
    107           rc = xDosAllocMem((PVOID) & bat, mem,
    108                             PAG_COMMIT | PAG_READ | PAG_WRITE, pszSrcFile, __LINE__);
    109           if (rc || !bat) {
    110             Dos_Error(MB_CANCEL, rc, HWND_DESKTOP, pszSrcFile, __LINE__,
    111                       GetPString(IDS_OUTOFMEMORY));
     109          if (xDosAllocMem((PVOID) & bat, mem,
     110                           PAG_COMMIT | PAG_READ | PAG_WRITE, pszSrcFile, __LINE__)) {
    112111            WinDismissDlg(hwnd, 0);
    113112            break;
Note: See TracChangeset for help on using the changeset viewer.