Changeset 1837
- Timestamp:
- Aug 2, 2015, 11:44:10 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/flesh.c
r1832 r1837 32 32 17 Jan 10 GKY Changes to get working with Watcom 1.9 Beta (1/16/10). Mostly cast CHAR CONSTANT * as CHAR *. 33 33 04 Aug 12 GKY Fix trap on close during drive scan 34 02 Aug 15 GKY Fix trap in Stubby 34 35 35 36 ***********************************************************************/ … … 282 283 static BOOL brokenlan = FALSE, isbroken = FALSE; 283 284 284 if (!pciParent || !*pciParent->pszFileName285 if (!pciParent || (INT) pciParent == -1 || !*pciParent->pszFileName 285 286 || pciParent->pszFileName == NullStr || !hwndCnr) 286 287 return FALSE; 287 288 288 289 len = strlen(pciParent->pszFileName); 289 290 memcpy(str, pciParent->pszFileName, len + 1); … … 398 399 goto None; 399 400 } 400 401 401 402 if (!rc) { 402 403 DosFindClose(hDir); … … 436 437 (includefiles || (pffb->attrFile & FILE_DIRECTORY)) && 437 438 // Skip . and .. 438 ( pffb->achName[0] != '.'|| (pffb->achName[1]439 ((pffb->achName[0] && pffb->achName[0] != '.') || (pffb->achName[1] 439 440 && (pffb->achName[1] != '.' 440 441 || pffb->achName[2])))) { … … 470 471 ri.zOrder = (ULONG) CMA_TOP; 471 472 ri.cRecordsInsert = 1; 472 473 ri.fInvalidateRecord = TRUE; 473 474 //DbgMsg(pszSrcFile, __LINE__, "Stubby %p CM_INSERTRECORD \"%s\" %.255s", hwndCnr, pci->pszFileName, pffb->achName); // 18 Dec 08 SHL fixme debug 474 475 if (!WinSendMsg(hwndCnr, 475 476 CM_INSERTRECORD, MPFROMP(pci), MPFROMP(&ri))) { 476 477 DosSleep(50); //05 Aug 07 GKY 100 477 478 478 WinSetFocus(HWND_DESKTOP, hwndCnr); 479 if (WinIsWindow((HAB)0, hwndCnr)) { 479 480 //DbgMsg(pszSrcFile, __LINE__, "Stubby %p CM_INSERTRECORD %s", hwndCnr, pci->pszFileName); // 18 Dec 08 SHL fixme debug 480 481 if (!WinSendMsg(hwndCnr, … … 489 490 } 490 491 else 491 ok = TRUE; 492 ok = TRUE; 493 } 492 494 } 493 495 } 494 }495 496 else if (toupper(*str) > 'B' && str[1] == ':' && str[2] == '\\' && 496 497 !str[3]) {
Note:
See TracChangeset
for help on using the changeset viewer.