Changeset 1316


Ignore:
Timestamp:
Dec 3, 2008, 7:31:42 PM (17 years ago)
Author:
Gregg Young
Message:

Code clean up -- remove redundant code; move code to match openwatcom requirements etc.

Location:
trunk/dll
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/filldir.c

    r1308 r1316  
    994994              ri.zOrder = (ULONG) CMA_TOP;
    995995              ri.cRecordsInsert = ulSelCnt;
    996               ri.fInvalidateRecord =
    997                 !fSyncUpdates && dcd && dcd->type == DIR_FRAME ?
    998                   FALSE : TRUE;
     996              ri.fInvalidateRecord = TRUE;
     997               // !fSyncUpdates && dcd && dcd->type == DIR_FRAME ? FALSE : TRUE; //fSyncUpdates always TRUE 12-1-08 GKY
    999998              if (!WinSendMsg(hwndCnr,
    1000999                              CM_INSERTRECORD,
     
    10101009                  ullTotalBytes = 0;
    10111010                  if (WinIsWindow((HAB) 0, hwndCnr))
    1012                     FreeCnrItemList(hwndCnr, pciFirst);
     1011                    FreeCnrItemList(hwndCnr, pciFirst);
    10131012                }
    10141013              // }
     
    11021101                ullTotalBytes = 0;
    11031102                if (WinIsWindow((HAB) 0, hwndCnr))
    1104                   FreeCnrItemList(hwndCnr, pciFirst);
     1103                  FreeCnrItemList(hwndCnr, pciFirst);
    11051104              }
    11061105            }
     
    15601559                                MPVOID,
    15611560                                MPFROM2SHORT(CMA_FIRST, CMA_ITEMORDER));
    1562 
    15631561    while (pci && (INT)pci != -1) {
    15641562      StubbyScan = xmallocz(sizeof(STUBBYSCAN), pszSrcFile, __LINE__);
  • trunk/dll/mkdir.c

    r1225 r1316  
    4343#pragma data_seg(GLOBAL2)
    4444CHAR targetdir[CCHMAXPATH];
    45 
    46 #pragma alloc_text(MKDIR,MassMkdir,SetDir,PMMkDir,SetTargetDir)
    4745
    4846APIRET MassMkdir(HWND hwndClient, CHAR * dir)
     
    244242  }
    245243}
     244
     245#pragma alloc_text(MKDIR,MassMkdir,SetDir,PMMkDir,SetTargetDir)
  • trunk/dll/treecnr.c

    r1304 r1316  
    809809                 MPFROMSHORT(CMA_HORIZONTAL), MPFROMLONG(-1));
    810810      while (StubbyScanCount !=0)
    811         DosSleep(100);
     811        DosSleep(50);
    812812      FillTreeCnr(dcd->hwndCnr, dcd->hwndParent);
    813813      if (fOkayMinimize) {
  • trunk/dll/worker.c

    r1313 r1316  
    16051605                                 &fsa, (ULONG) sizeof(FILESTATUS3));
    16061606                if (fsa.attrFile & FILE_DIRECTORY) {
    1607                   sprintf(prompt,
     1607                  /*sprintf(prompt,
    16081608                          GetPString(IDS_DELETINGTEXT), wk->li->list[x]);
     1609                  AddNote(prompt);*/ //Duplicate call 12-03-08 GKY
    16091610                  DosRequestMutexSem(hmtxFM2Delete, SEM_INDEFINITE_WAIT); // Prevent race 12-3-08 GKY
    1610                   AddNote(prompt);
    16111611                  error = (APIRET) wipeallf("%s%s*",
    16121612                                            wk->li->list[x],
    16131613                                            (*wk->li->list[x] &&
    16141614                                             wk->li->
    1615                                              list[x][strlen(wk->li->list[x]) -
    1616                                                      1] !=
    1617                                              '\\') ? "\\" : NullStr);
     1615                                             list[x][strlen(wk->li->list[x]) - 1]
     1616                                             != '\\') ? "\\" : NullStr);
    16181617                  DosError(FERR_DISABLEHARDERR);
    16191618                  if (!error)
     
    16241623                }
    16251624                else {
    1626                   sprintf(prompt,
     1625                  /*sprintf(prompt,
    16271626                          GetPString(IDS_DELETINGTEXT), wk->li->list[x]);
    1628                   AddNote(prompt);
     1627                  AddNote(prompt); */  //Duplicate call 12-03-08 GKY
    16291628                  DosError(FERR_DISABLEHARDERR);
    16301629                  if (wk->li->type == IDM_DELETE){
Note: See TracChangeset for help on using the changeset viewer.