Changeset 1476 for trunk/dll/wrappers.c


Ignore:
Timestamp:
Nov 15, 2009, 11:11:36 PM (16 years ago)
Author:
Gregg Young
Message:

Rework xDosQueryAppType to remove HIMEM ifdef

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/wrappers.c

    r1439 r1476  
    1717  25 Dec 08 GKY Add code to allow write verify to be turned off on a per drive basis
    1818  17 Jun 09 SHL Correct missing rc set
    19   12 Jul 09 GKY Add xDosQueryAppType and xDoxAlloc... to allow FM/2 to load in high memory
     19  12 Jul 09 GKY Add xDosQueryAppType and xDosAlloc... to allow FM/2 to load in high memory
     20  15 Nov 09 GKY Rework xDosQueryAppType to remove HIMEM ifdefs
    2021
    2122***********************************************************************/
     
    5758{
    5859  APIRET rc;
    59 # ifdef HIMEM
    60   char *pszPgm;
    61 
    62   rc = DosAllocMem((PVOID)&pszPgm,
    63                    MaxComLineStrg,
    64                    PAG_COMMIT | PAG_READ | PAG_WRITE);
    65   if (rc) {
    66     Dos_Error(MB_CANCEL, rc, HWND_DESKTOP, pszSrcFile,
    67               __LINE__, GetPString(IDS_OUTOFMEMORY));
    68     return -1;
    69   }
    70   strcpy(pszPgm, pszName);
    71   rc = DosQueryAppType(pszPgm, pFlags);
    72   DosFreeMem(pszPgm);
    73   return rc;
    74 # else
    75   rc = DosQueryAppType(pszName, pFlags);
    76   return rc;
    77 # endif
     60  CHAR szPgm[CCHMAXPATH];
     61
     62  strcpy(szPgm, pszName);
     63  rc = DosQueryAppType(szPgm, pFlags);
     64  return rc;
    7865}
    7966
Note: See TracChangeset for help on using the changeset viewer.