Changeset 897 for trunk/dll/select.c
- Timestamp:
- Dec 31, 2007, 12:34:00 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/select.c
r847 r897 585 585 BOOL slow = FALSE; 586 586 UINT x, numD, numS; 587 INT ret = 0; 587 588 588 589 if (!hwndCnrS || !hwndCnrD) { … … 701 702 pciDa[x]->flags |= CNRITEM_LARGER; 702 703 } 703 if ((pciSa[x]->date.year > pciDa[x]->date.year) ? TRUE : 704 ret = TestCDates(&pciDa[x]->date, &pciDa[x]->time, 705 &pciSa[x]->date, &pciSa[x]->time); 706 if (ret == 1) 707 /*((pciSa[x]->date.year > pciDa[x]->date.year) ? TRUE : 704 708 (pciSa[x]->date.year < pciDa[x]->date.year) ? FALSE : 705 709 (pciSa[x]->date.month > pciDa[x]->date.month) ? TRUE : … … 712 716 (pciSa[x]->time.minutes < pciDa[x]->time.minutes) ? FALSE : 713 717 (pciSa[x]->time.seconds > pciDa[x]->time.seconds) ? TRUE : 714 (pciSa[x]->time.seconds < pciDa[x]->time.seconds) ? FALSE : FALSE) {718 (pciSa[x]->time.seconds < pciDa[x]->time.seconds) ? FALSE : FALSE)*/ { 715 719 pciSa[x]->flags |= CNRITEM_NEWER; 716 720 pciDa[x]->flags |= CNRITEM_OLDER; 717 721 } 718 else if ((pciSa[x]->date.year < pciDa[x]->date.year) ? TRUE : 722 else if (ret == -1) 723 /*((pciSa[x]->date.year < pciDa[x]->date.year) ? TRUE : 719 724 (pciSa[x]->date.year > pciDa[x]->date.year) ? FALSE : 720 725 (pciSa[x]->date.month < pciDa[x]->date.month) ? TRUE : … … 728 733 (pciSa[x]->time.seconds < pciDa[x]->time.seconds) ? TRUE : 729 734 (pciSa[x]->time.seconds > pciDa[x]->time.seconds) ? FALSE : 730 FALSE) {735 FALSE)*/ { 731 736 pciSa[x]->flags |= CNRITEM_OLDER; 732 737 pciDa[x]->flags |= CNRITEM_NEWER; … … 1187 1192 HENUM henum; 1188 1193 HWND hwnd; 1189 register INT numwindows = 0, w, x, z, cmp;1194 INT numwindows = 0, w, x, z, cmp = 0; 1190 1195 struct Cnr *Cnrs = NULL; 1191 1196 struct SS *bsres; … … 1277 1282 bsres->pci->cbFile + bsres->pci->easize) 1278 1283 Cnrs[z].ss[x].largest = FALSE; 1279 cmp = 1280 (Cnrs[z].ss[x].pci->date.year > 1284 cmp = TestCDates(&bsres->pci->date, &bsres->pci->time, 1285 &Cnrs[z].ss[x].pci->date, &Cnrs[z].ss[x].pci->time); 1286 /*(Cnrs[z].ss[x].pci->date.year > 1281 1287 bsres->pci->date.year) ? TRUE : (Cnrs[z].ss[x].pci->date.year < 1282 1288 bsres->pci->date. … … 1311 1317 seconds < 1312 1318 bsres->pci->time. 1313 seconds) ? FALSE : FALSE; 1314 if ( !cmp)1319 seconds) ? FALSE : FALSE;*/ 1320 if (cmp != 1) 1315 1321 Cnrs[z].ss[x].newest = FALSE; 1316 cmp =1322 /*cmp = 1317 1323 (Cnrs[z].ss[x].pci->date.year < 1318 1324 bsres->pci->date.year) ? TRUE : (Cnrs[z].ss[x].pci->date.year > … … 1348 1354 seconds > 1349 1355 bsres->pci->time. 1350 seconds) ? FALSE : FALSE; 1351 if ( !cmp)1356 seconds) ? FALSE : FALSE;*/ 1357 if (cmp != -1) 1352 1358 Cnrs[z].ss[x].oldest = FALSE; 1353 1359 cmp = 0;
Note:
See TracChangeset
for help on using the changeset viewer.