Changeset 730 for trunk/dll/update.c
- Timestamp:
- Jul 22, 2007, 7:57:09 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/update.c
r557 r730 40 40 HPOINTER SelectDriveIcon(PCNRITEM pci) 41 41 { 42 UINT driveflag = driveflags[toupper(*pci-> szFileName) - 'A'];43 *pci-> szFileName = toupper(*pci->szFileName);44 if (isalpha(*pci-> szFileName) &&45 toupper(*pci-> szFileName) > 'B') {42 UINT driveflag = driveflags[toupper(*pci->pszFileName) - 'A']; 43 *pci->pszFileName = toupper(*pci->pszFileName); 44 if (isalpha(*pci->pszFileName) && 45 toupper(*pci->pszFileName) > 'B') { 46 46 if (driveflag & DRIVE_CDROM) 47 47 pci->rc.hptrIcon = hptrCDROM; … … 127 127 found = TRUE; 128 128 #endif 129 if ((!fForceUpper && !fForceLower && strcmp(pci-> szFileName, filename)) ||129 if ((!fForceUpper && !fForceLower && strcmp(pci->pszFileName, filename)) || 130 130 pci->cbFile != ffb.cbFile || pci->attrFile != ffb.attrFile || 131 131 pci->easize != CBLIST_TO_EASIZE(ffb.cbList) || pci->date.day != … … 144 144 ffb.cchName = 0; 145 145 FillInRecordFromFFB(hwndCnr, pci, filename, &ffb, partial, dcd); 146 if (strlen(pci-> szFileName) < 4)146 if (strlen(pci->pszFileName) < 4) 147 147 SelectDriveIcon(pci); 148 148 oldemphasis = pci->rc.flRecordAttr & (CRA_SELECTED | CRA_CURSORED); … … 180 180 pci, 181 181 filename, &ffb, partial, dcd); 182 if (strlen(pci-> szFileName) < 4)182 if (strlen(pci->pszFileName) < 4) 183 183 SelectDriveIcon(pci); 184 184 memset(&ri, 0, sizeof(RECORDINSERT)); … … 226 226 FillInRecordFromFFB(hwndCnr, 227 227 pci, filename, &ffb, partial, dcd); 228 if (strlen(pci-> szFileName) < 4)228 if (strlen(pci->pszFileName) < 4) 229 229 SelectDriveIcon(pci); 230 230 memset(&ri, 0, sizeof(RECORDINSERT)); … … 273 273 pci, 274 274 filename, &ffb, partial, dcd); 275 if (strlen(pci-> szFileName) < 4)275 if (strlen(pci->pszFileName) < 4) 276 276 SelectDriveIcon(pci); 277 277 memset(&ri, 0, sizeof(RECORDINSERT)); … … 300 300 FALSE, 301 301 TRUE)) != 302 NULL && (INT) pci != -1 && strlen(pci-> szFileName) > 3) {302 NULL && (INT) pci != -1 && strlen(pci->pszFileName) > 3) { 303 303 /* file doesn't exist; delete record */ 304 304 #ifdef DEBUG … … 410 410 /* update record? */ 411 411 if ((!fForceUpper && !fForceLower && 412 strcmp(pci-> szFileName, filename[x])) ||412 strcmp(pci->pszFileName, filename[x])) || 413 413 pci->cbFile != ffb.cbFile || pci->attrFile != ffb.attrFile || 414 414 pci->easize != CBLIST_TO_EASIZE(ffb.cbList) || … … 431 431 FillInRecordFromFFB(hwndCnr, 432 432 pci, filename[x], &ffb, partial, dcd); 433 if (IsRoot(pci-> szFileName))433 if (IsRoot(pci->pszFileName)) 434 434 SelectDriveIcon(pci); 435 435 WinSendMsg(hwndCnr, … … 455 455 filename[x], 456 456 &ffb, partial, dcd); 457 if (strlen(pci-> szFileName) < 4)457 if (strlen(pci->pszFileName) < 4) 458 458 SelectDriveIcon(pci); 459 459 memset(&ri, 0, sizeof(RECORDINSERT)); … … 509 509 filename[x], 510 510 &ffb, partial, dcd); 511 if (strlen(pci-> szFileName) < 4)511 if (strlen(pci->pszFileName) < 4) 512 512 SelectDriveIcon(pci); 513 513 memset(&ri, 0, sizeof(RECORDINSERT)); … … 556 556 filename[x], 557 557 &ffb, partial, dcd); 558 if (strlen(pci-> szFileName) < 4)558 if (strlen(pci->pszFileName) < 4) 559 559 SelectDriveIcon(pci); 560 560 memset(&ri, 0, sizeof(RECORDINSERT)); … … 589 589 FALSE, 590 590 TRUE)) != NULL && 591 (INT) pci != -1 && !IsRoot(pci-> szFileName)) {591 (INT) pci != -1 && !IsRoot(pci->pszFileName)) { 592 592 /* file doesn't exist; delete record */ 593 593 if (pci->rc.flRecordAttr & CRA_SELECTED)
Note:
See TracChangeset
for help on using the changeset viewer.