Changeset 742 for trunk/dll/comp.c
- Timestamp:
- Jul 30, 2007, 12:56:30 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/comp.c
r741 r742 24 24 03 Nov 06 SHL Count thread usage 25 25 22 Mar 07 GKY Use QWL_USER 26 29 Jul 07 SHL Use Win_Error to report container errors 26 27 27 28 ***********************************************************************/ … … 429 430 MPFROM2SHORT(1, CMA_FREE | CMA_INVALIDATE)); 430 431 } 431 432 else { 432 433 pci->pszFileName = xstrdup(NullStr, pszSrcFile, __LINE__); 433 434 //pci->pszFileName = pci->szFileName; … … 480 481 if (cmp->rightdir[strlen(cmp->rightdir) - 1] != '\\') 481 482 pciO->pszFileName++; 482 483 } 483 484 strcpy(pciO->szDispAttr, pci->szDispAttr); 484 485 pciO->attrFile = pci->attrFile; … … 561 562 if (cmp->rightdir[strlen(cmp->rightdir) - 1] != '\\') 562 563 pciO->pszFileName++; 563 564 } 564 565 strcpy(pciO->szDispAttr, pci->szDispAttr); 565 566 pciO->attrFile = pci->attrFile; … … 997 998 MPFROMLONG(recsNeeded)); 998 999 if (!pcilFirst) { 999 Runtime_Error(pszSrcFile, __LINE__, "CM_ALLOCRECORD %u failed",1000 1000 Win_Error(hwndLeft, cmp->hwnd, pszSrcFile, __LINE__, "CM_ALLOCRECORD %u failed", 1001 recsNeeded); 1001 1002 recsNeeded = 0; 1002 1003 } … … 1007 1008 MPFROMLONG(recsNeeded)); 1008 1009 if (!pcirFirst) { 1009 Runtime_Error(pszSrcFile, __LINE__, "CM_ALLOCRECORD %u failed",1010 1010 Win_Error(hwndRight, cmp->hwnd, pszSrcFile, __LINE__, "CM_ALLOCRECORD %u failed", 1011 recsNeeded); 1011 1012 recsNeeded = 0; 1012 1013 pcil = pcilFirst; … … 1026 1027 //pcir->pszFileName = pcir->szFileName; 1027 1028 // 23 Jul 07 SHL fixme to set pszIcon after pszFileName allocated 1028 1029 1029 // 23 Jul 07 SHL fixme to set pszLongName after pszFileName allocated 1030 pcir->pszFileName = xmalloc(CCHMAXPATH, pszSrcFile, __LINE__);//29 Jul 07 GKY Temp fix to crash 1030 1031 pcir->rc.pszIcon = pcir->pszFileName; 1031 1032 pcir->rc.hptrIcon = (HPOINTER) 0; … … 1035 1036 pcir->pszDispAttr = pcir->szDispAttr; 1036 1037 pcil->hwndCnr = hwndLeft; 1037 1038 1038 //pcil->pszFileName = pcil->szFileName; 1039 pcil->pszFileName = xmalloc(CCHMAXPATH, pszSrcFile, __LINE__);//29 Jul 07 GKY Temp fix to crash 1039 1040 pcil->rc.pszIcon = pcil->pszFileName; 1040 1041 pcil->rc.hptrIcon = (HPOINTER) 0; … … 1046 1047 x = stricmp(filesl[l]->fname, filesr[r]->fname); 1047 1048 if (!x) { 1048 1049 // Same 1049 1050 sprintf(pcil->pszFileName, "%s%s%s", cmp->leftdir, 1050 1051 (cmp->leftdir[strlen(cmp->leftdir) - 1] == '\\') ? 1051 1052 NullStr : "\\", filesl[l]->fname); 1052 // pcil->rc.hptrIcon 1053 // pcil->rc.hptrIcon = hptrFile; 1053 1054 pcil->pszFileName = pcil->pszFileName + lenl; 1054 1055 pcil->attrFile = filesl[l]->attrFile; … … 1092 1093 pcir->pszFileName = pcir->pszFileName + lenr; 1093 1094 pcir->attrFile = filesr[r]->attrFile; 1094 // pcir->rc.hptrIcon 1095 // pcir->rc.hptrIcon = hptrFile; 1095 1096 y = 0; 1096 1097 for (x = 0; x < 6; x++) … … 1190 1191 pcil->pszFileName = pcil->pszFileName + lenl; 1191 1192 pcil->attrFile = filesl[l]->attrFile; 1192 // pcil->rc.hptrIcon 1193 // pcil->rc.hptrIcon = hptrFile; 1193 1194 y = 0; 1194 1195 for (x = 0; x < 6; x++) … … 1234 1235 pcir->pszFileName = pcir->pszFileName + lenr; 1235 1236 pcir->attrFile = filesr[r]->attrFile; 1236 // pcir->rc.hptrIcon 1237 // pcir->rc.hptrIcon = hptrFile; 1237 1238 y = 0; 1238 1239 for (x = 0; x < 6; x++) { … … 1280 1281 pcil->pszFileName = pcil->pszFileName + lenl; 1281 1282 pcil->attrFile = filesl[l]->attrFile; 1282 // pcil->rc.hptrIcon 1283 // pcil->rc.hptrIcon = hptrFile; 1283 1284 y = 0; 1284 1285 for (x = 0; x < 6; x++) … … 1324 1325 pcir->pszFileName = pcir->pszFileName + lenr; 1325 1326 pcir->attrFile = filesr[r]->attrFile; 1326 // pcir->rc.hptrIcon 1327 // pcir->rc.hptrIcon = hptrFile; 1327 1328 y = 0; 1328 1329 for (x = 0; x < 6; x++) { … … 1386 1387 if (!WinSendMsg(hwndLeft, CM_INSERTRECORD, 1387 1388 MPFROMP(pcilFirst), MPFROMP(&ri))) { 1389 Win_Error(hwndLeft, cmp->hwnd, pszSrcFile, __LINE__, "CM_INSERTRECORD"); 1388 1390 pcil = pcilFirst; 1389 1391 while (pcil) { … … 1404 1406 if (!WinSendMsg(hwndRight, CM_INSERTRECORD, 1405 1407 MPFROMP(pcirFirst), MPFROMP(&ri))) { 1408 Win_Error(hwndLeft, cmp->hwnd, pszSrcFile, __LINE__, "CM_INSERTRECORD"); 1406 1409 WinSendMsg(hwndLeft, CM_REMOVERECORD, 1407 1410 MPVOID, MPFROM2SHORT(0, CMA_FREE | CMA_INVALIDATE));
Note:
See TracChangeset
for help on using the changeset viewer.