Changeset 1438 for trunk/dll/systemf.c


Ignore:
Timestamp:
Jun 28, 2009, 10:47:00 PM (16 years ago)
Author:
Gregg Young
Message:

Improved drivebar changes; Added AddBackslashToPath() to remove repeatative code. replaced "
" with PCSZ variable; ANY_OBJ added the DosAlloc... (experimental)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/systemf.c

    r1402 r1438  
    201201            strcpy(listfile, pTmpDir ? pTmpDir : pFM2SaveDirectory);
    202202            MakeTempName(listfile, "$FM2LI$T", 2);
    203             /*if (listfile[strlen(listfile) - 1] != '\\')
    204               strcat(listfile, "\\");
    205             sprintf(&listfile[strlen(listfile)], "%s.%03x",
    206                     LISTTEMPROOT, (clock() & 4095));*/
    207203            fp = xfopen(listfile, "w",pszSrcFile,__LINE__);
    208204            if (fp) {
     
    670666  PID sessPID;
    671667  BOOL wasquote;
    672   char *pszPgm, *pszArgs = NULL;
    673   char szObject[32] = "", *p, szSavedir[CCHMAXPATH];
     668  char *p, *pszPgm, *pszArgs = NULL;
     669  char szObject[32] = "";
     670  char szSavedir[CCHMAXPATH];
    674671  BOOL useTermQ = FALSE;
    675672  char szTempdir[CCHMAXPATH];
     
    704701    hwnd = HWND_DESKTOP;
    705702
    706   rc = DosAllocMem((PVOID)&pszPgm,
    707                    MaxComLineStrg,
    708                    PAG_COMMIT | OBJ_TILE | PAG_READ | PAG_WRITE);
     703  rc = xDosAllocMem((PVOID)&pszPgm,
     704                    MaxComLineStrg,
     705                    PAG_COMMIT | OBJ_TILE | PAG_READ | PAG_WRITE);
    709706  if (rc) {
    710707    Dos_Error(MB_CANCEL,rc,hwnd,pszSrcFile,__LINE__,GetPString(IDS_OUTOFMEMORY));
     
    752749      temp = *p;
    753750      if (temp) {
    754         rc = DosAllocMem((PVOID)&pszArgs,
    755                          MaxComLineStrg * 2,
    756                          PAG_COMMIT | OBJ_TILE | PAG_READ | PAG_WRITE);
     751        rc = xDosAllocMem((PVOID)&pszArgs,
     752                          MaxComLineStrg * 2,
     753                          PAG_COMMIT | OBJ_TILE | PAG_READ | PAG_WRITE);
    757754        if (rc)
    758755          Dos_Error(MB_CANCEL,rc,hwnd,pszSrcFile,__LINE__,GetPString(IDS_OUTOFMEMORY));
     
    886883      if (~type & FULLSCREEN)
    887884        type |= WINDOWED;
    888       rc = DosAllocMem((PVOID) & pszArgs, MaxComLineStrg * 2,
    889                        PAG_COMMIT | OBJ_TILE | PAG_READ | PAG_WRITE);
     885      rc = xDosAllocMem((PVOID) & pszArgs, MaxComLineStrg * 2,
     886                        PAG_COMMIT | OBJ_TILE | PAG_READ | PAG_WRITE);
    890887      if (rc) {
    891888        Dos_Error(MB_CANCEL,rc,hwnd,pszSrcFile,__LINE__,GetPString(IDS_OUTOFMEMORY));
Note: See TracChangeset for help on using the changeset viewer.