Changeset 1673 for trunk/dll/update.c
- Timestamp:
- Dec 30, 2012, 7:51:01 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/update.c
r1611 r1673 73 73 } 74 74 75 /* Update/add CNRITEM record for filename 75 /** 76 * Update/add CNRITEM record for filename 76 77 * Deletes existing CNRITEM if file has disappeared 77 78 * @returns pci pointer to CNRITEM record or NULL if not found or if stale CNRITEM deleted … … 92 93 if (IsFullName(filename)) { 93 94 if (driveflags[toupper(*filename) - 'A'] & DRIVE_NOTWRITEABLE) 94 / * ignore non-writeable drives */95 // ignore non-writeable drives 95 96 return (PCNRITEM) NULL; 96 97 } … … 102 103 &ffb, sizeof(ffb), &nm, FIL_QUERYEASIZEL); 103 104 if (!status) { 104 / * file exists */105 // file exists 105 106 DosFindClose(hDir); 106 107 if (!dcd) 107 108 dcd = INSTDATA(hwndCnr); 108 /*109 if(dcd->type == TREE_FRAME &&110 !(ffb.attrFile & FILE_DIRECTORY))111 return (PCNRITEM)NULL;112 */113 109 if (dcd->type == ARC_FRAME) 114 110 return (PCNRITEM) NULL; … … 167 163 MPFROMP(pci), MPFROM2SHORT(TRUE, oldemphasis)); 168 164 } 169 else / * existed, unchanged, do nothing but return */165 else // existed, unchanged, do nothing but return 170 166 return pci; 171 167 } … … 207 203 else if (ffb.attrFile & FILE_DIRECTORY) { 208 204 209 / * check all parts and insert as required */205 // check all parts and insert as required 210 206 CHAR *p, temp; 211 207 PCNRITEM pciParent = NULL, pciT; … … 359 355 if (IsFullName(filename[x])) { 360 356 if (driveflags[toupper(*filename[x]) - 'A'] & DRIVE_NOTWRITEABLE) 361 / * ignore non-writeable drives */357 // ignore non-writeable drives 362 358 continue; 363 359 } … … 370 366 &ffb, sizeof(ffb), &nm, FIL_QUERYEASIZEL); 371 367 if (!status) { 372 / * file exists */368 // file exists 373 369 DosFindClose(hDir); 374 // if(dcd->type == TREE_FRAME && !(ffb.attrFile & FILE_DIRECTORY))375 // continue;376 370 if (dcd->type == DIR_FRAME && *dcd->directory) { 377 371 … … 398 392 (PCNRITEM) NULL, partial, FALSE, TRUE); 399 393 if (pci) { 400 / * update record? */394 // update record? 401 395 if ((!fForceUpper && !fForceLower && 402 396 strcmp(pci->pszFileName, filename[x])) || … … 415 409 pci->latime.minutes != ffb.ftimeLastAccess.minutes || 416 410 pci->latime.hours != ffb.ftimeLastAccess.hours) { 417 / * changed; update */411 // changed; update 418 412 pciList[numlist++] = pci; 419 413 *ffb.achName = 0; … … 430 424 } 431 425 else { 432 / * add record */426 // add record 433 427 if (dcd->type == DIR_FRAME) { 434 428 RECORDINSERT ri; … … 470 464 } 471 465 else if (ffb.attrFile & FILE_DIRECTORY) { 472 / * check all parts and insert as required */466 // check all parts and insert as required 473 467 CHAR *p, temp; 474 468 PCNRITEM pciParent = NULL, pciT; … … 577 571 TRUE)) != NULL && 578 572 (INT) pci != -1 && !IsRoot(pci->pszFileName)) { 579 / * file doesn't exist; delete record */573 // file doesn't exist; delete record 580 574 if (pci->rc.flRecordAttr & CRA_SELECTED) 581 575 WinSendMsg(hwndCnr,
Note:
See TracChangeset
for help on using the changeset viewer.