Changeset 741 for trunk/dll/comp.c
- Timestamp:
- Jul 29, 2007, 10:52:47 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/comp.c
r739 r741 338 338 339 339 case WM_DESTROY: 340 DosSleep(100 L);340 DosSleep(100); 341 341 break; 342 342 } … … 792 792 RECORDINSERT ri; 793 793 CHAR *pch; 794 CHAR fname[CCHMAXPATH];795 794 796 795 WinCancelShutdown(hmq, TRUE); … … 1027 1026 //pcir->pszFileName = pcir->szFileName; 1028 1027 // 23 Jul 07 SHL fixme to set pszIcon after pszFileName allocated 1029 // 23 Jul 07 SHL fixme to set pszLongName after pszFileName allocated 1028 // 23 Jul 07 SHL fixme to set pszLongName after pszFileName allocated 1029 pcir->pszFileName = xmalloc(CCHMAXPATH, pszSrcFile, __LINE__);//29 Jul 07 GKY Temp fix to crash 1030 1030 pcir->rc.pszIcon = pcir->pszFileName; 1031 1031 pcir->rc.hptrIcon = (HPOINTER) 0; 1032 pcir->pszDisplayName = NULL; // Not used here1033 //pcir->pszSubject = pcir->szSubject;1034 //pcir->pszLongname = pcir-> szLongname;1032 pcir->pszDisplayName = pcir->pszFileName; // Not used here 1033 pcir->pszSubject = xmalloc(CCHMAXPATH, pszSrcFile, __LINE__); 1034 //pcir->pszLongname = pcir->pszFileName; 1035 1035 pcir->pszDispAttr = pcir->szDispAttr; 1036 1036 pcil->hwndCnr = hwndLeft; 1037 //pcil->pszFileName = pcil->szFileName; 1037 //pcil->pszFileName = pcil->szFileName; 1038 pcil->pszFileName = xmalloc(CCHMAXPATH, pszSrcFile, __LINE__);//29 Jul 07 GKY Temp fix to crash 1038 1039 pcil->rc.pszIcon = pcil->pszFileName; 1039 1040 pcil->rc.hptrIcon = (HPOINTER) 0; 1040 1041 pcil->pszDispAttr = pcil->szDispAttr; 1041 pcil->pszDisplayName = NULL; // Not used here1042 //pcil->pszSubject = pcil->szSubject;1043 //pcil->pszLongname = pcil-> szLongname;1042 pcil->pszDisplayName = pcil->pszFileName; // Not used here 1043 pcil->pszSubject = xmalloc(CCHMAXPATH, pszSrcFile, __LINE__) ; 1044 //pcil->pszLongname = pcil->pszFileName; 1044 1045 if ((filesl && filesl[l]) && (filesr && filesr[r])) { 1045 1046 x = stricmp(filesl[l]->fname, filesr[r]->fname); 1046 1047 if (!x) { 1047 1048 // Same 1048 sprintf( fname, "%s%s%s", cmp->leftdir,1049 sprintf(pcil->pszFileName, "%s%s%s", cmp->leftdir, 1049 1050 (cmp->leftdir[strlen(cmp->leftdir) - 1] == '\\') ? 1050 1051 NullStr : "\\", filesl[l]->fname); 1051 1052 // pcil->rc.hptrIcon = hptrFile; 1052 pcil->pszFileName = xstrdup((fname + lenl), pszSrcFile, __LINE__);1053 pcil->pszFileName = pcil->pszFileName + lenl; 1053 1054 pcil->attrFile = filesl[l]->attrFile; 1054 1055 y = 0; … … 1086 1087 } 1087 1088 } 1088 sprintf( fname, "%s%s%s", cmp->rightdir,1089 sprintf(pcir->pszFileName, "%s%s%s", cmp->rightdir, 1089 1090 (cmp->rightdir[strlen(cmp->rightdir) - 1] == '\\') ? 1090 1091 NullStr : "\\", filesr[r]->fname); 1091 pcir->pszFileName = xstrdup((fname + lenr), pszSrcFile, __LINE__);1092 pcir->pszFileName = pcir->pszFileName + lenr; 1092 1093 pcir->attrFile = filesr[r]->attrFile; 1093 1094 // pcir->rc.hptrIcon = hptrFile; … … 1184 1185 else if (x < 0) { 1185 1186 // Just on left 1186 sprintf( fname, "%s%s%s", cmp->leftdir,1187 sprintf(pcil->pszFileName, "%s%s%s", cmp->leftdir, 1187 1188 (cmp->leftdir[strlen(cmp->leftdir) - 1] == '\\') ? 1188 1189 NullStr : "\\", filesl[l]->fname); 1189 pcil->pszFileName = xstrdup((fname + lenl), pszSrcFile, __LINE__);1190 pcil->pszFileName = pcil->pszFileName + lenl; 1190 1191 pcil->attrFile = filesl[l]->attrFile; 1191 1192 // pcil->rc.hptrIcon = hptrFile; … … 1228 1229 else { 1229 1230 // Just on right 1230 sprintf( fname, "%s%s%s", cmp->rightdir,1231 sprintf(pcir->pszFileName, "%s%s%s", cmp->rightdir, 1231 1232 (cmp->rightdir[strlen(cmp->rightdir) - 1] == '\\') ? 1232 1233 NullStr : "\\", filesr[r]->fname); 1233 pcir->pszFileName = xstrdup((fname + lenr), pszSrcFile, __LINE__);1234 pcir->pszFileName = pcir->pszFileName + lenr; 1234 1235 pcir->attrFile = filesr[r]->attrFile; 1235 1236 // pcir->rc.hptrIcon = hptrFile; … … 1274 1275 else if (filesl && filesl[l]) { 1275 1276 // Just on left 1276 sprintf( fname, "%s%s%s", cmp->leftdir,1277 sprintf(pcil->pszFileName, "%s%s%s", cmp->leftdir, 1277 1278 (cmp->leftdir[strlen(cmp->leftdir) - 1] == '\\') ? 1278 1279 NullStr : "\\", filesl[l]->fname); 1279 pcil->pszFileName = xstrdup((fname + lenl), pszSrcFile, __LINE__);1280 pcil->pszFileName = pcil->pszFileName + lenl; 1280 1281 pcil->attrFile = filesl[l]->attrFile; 1281 1282 // pcil->rc.hptrIcon = hptrFile; … … 1318 1319 /* filesr && filesr[r] */ 1319 1320 // Just on right 1320 sprintf( fname, "%s%s%s", cmp->rightdir,1321 sprintf(pcir->pszFileName, "%s%s%s", cmp->rightdir, 1321 1322 (cmp->rightdir[strlen(cmp->rightdir) - 1] == '\\') ? 1322 1323 NullStr : "\\", filesr[r]->fname); 1323 pcir->pszFileName = xstrdup((fname + lenr), pszSrcFile, __LINE__);1324 pcir->pszFileName = pcir->pszFileName + lenr; 1324 1325 pcir->attrFile = filesr[r]->attrFile; 1325 1326 // pcir->rc.hptrIcon = hptrFile;
Note:
See TracChangeset
for help on using the changeset viewer.