Changeset 888 for trunk/dll/worker.c
- Timestamp:
- Dec 22, 2007, 11:02:11 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/worker.c
r847 r888 412 412 if (!runemf2(SEPARATE | WINDOWED | 413 413 fArcStuffVisible ? 0 : (BACKGROUND | MINIMIZED), 414 HWND_DESKTOP, ex.extractdir, NULL,414 HWND_DESKTOP, pszSrcFile, __LINE__, ex.extractdir, NULL, 415 415 "%s %s %s%s%s", 416 416 ex.command, … … 857 857 else { 858 858 runemf2(SEPARATE, 859 HWND_DESKTOP, NULL, NULL, 859 HWND_DESKTOP, pszSrcFile, __LINE__, 860 NULL, NULL, 860 861 "%s %s %s", 861 862 dircompare, 862 863 BldQuotedFileName(szQuotedDirName, wk->li->targetpath), 863 864 BldQuotedFileName(szQuotedFileName, wk->li->list[x])); 864 // CHAR d1[] = "\"";865 // CHAR d2[] = "\"";866 // if (!needs_quoting(wk->li->targetpath))867 // *d1 = 0;868 // if (!needs_quoting(wk->li->list[x]))869 // *d2 = 0;870 // runemf2(SEPARATE,871 // HWND_DESKTOP, NULL, NULL,872 // "%s %s%s%s %s%s%s",873 // dircompare,874 // d1, wk->li->targetpath, d1,875 // d2, wk->li->list[x], d2);876 865 } 877 866 } … … 884 873 ExecOnList(wk->hwndFrame, 885 874 compare, 886 WINDOWED | SEPARATEKEEP, NULL, fakelist, NULL); 875 WINDOWED | SEPARATEKEEP, NULL, fakelist, NULL, 876 pszSrcFile, __LINE__); 887 877 } 888 878 else { … … 1029 1019 "%a", 1030 1020 WINDOWED | SEPARATE | PROMPT, 1031 NULL, wk->li->list, GetPString(IDS_DOITYOURSELFTEXT)); 1021 NULL, wk->li->list, GetPString(IDS_DOITYOURSELFTEXT), 1022 pszSrcFile, __LINE__); 1032 1023 break; 1033 1024 … … 1081 1072 strcat(szBuffer, " "); 1082 1073 BldQuotedFileName(szBuffer + strlen(szBuffer), wk->li->arcname); 1083 // if (needs_quoting(wk->li->arcname))1084 // strcat(szBuffer, "\"");1085 // strcat(szBuffer, wk->li->arcname);1086 // if (needs_quoting(wk->li->arcname))1087 // strcat(szBuffer, "\"");1088 1074 } 1089 1075 else { … … 1106 1092 } 1107 1093 BldQuotedFileName(szBuffer + strlen(szBuffer), wk->li->list[x]); 1108 // if (needs_quoting(wk->li->list[x]))1109 // strcat(szBuffer, "\"");1110 // strcat(szBuffer, wk->li->list[x]);1111 // if (needs_quoting(wk->li->list[x]))1112 // strcat(szBuffer, "\"");1113 1094 x++; 1114 1095 if (!wk->li->list[x] || strlen(szBuffer) + 1115 1096 strlen(wk->li->list[x]) + 5 > 1024) { 1116 1097 runemf2(SEPARATE | WINDOWED | BACKGROUND | MINIMIZED | WAIT, 1117 HWND_DESKTOP, 1098 HWND_DESKTOP, pszSrcFile, __LINE__, 1118 1099 (wk->li->type == IDM_FAKEEXTRACT || 1119 1100 wk->li->type == IDM_FAKEEXTRACTM) ? … … 1235 1216 strcat(szBuffer, " "); 1236 1217 BldQuotedFileName(szBuffer + strlen(szBuffer), ad.arcname); 1237 // if (needs_quoting(ad.arcname))1238 // strcat(szBuffer, "\"");1239 // strcat(szBuffer, ad.arcname);1240 // if (needs_quoting(ad.arcname))1241 // strcat(szBuffer, "\"");1242 1218 p = &szBuffer[strlen(szBuffer)]; 1243 1219 if (ad.mask.szMask) { … … 1249 1225 while (wk->li->list[x]) { 1250 1226 FILESTATUS3 fsa; 1251 // BOOL spaces;1252 // if (needs_quoting(wk->li->list[x])) {1253 // spaces = TRUE;1254 // strcat(szBuffer, "\"");1255 // }1256 // else1257 // spaces = FALSE;1258 // strcat(szBuffer, wk->li->list[x]);1259 1227 memset(&fsa, 0, sizeof(FILESTATUS3)); 1260 1228 DosError(FERR_DISABLEHARDERR); … … 1264 1232 if (fsa.attrFile & FILE_DIRECTORY) { 1265 1233 BldQuotedFullPathName(szBuffer + strlen(szBuffer), wk->li->list[x], "*"); 1266 // if (szBuffer[strlen(szBuffer) - 1] != '\\')1267 // strcat(szBuffer, "\\");1268 // strcat(szBuffer, "*");1269 1234 } 1270 1235 else 1271 1236 BldQuotedFileName(szBuffer + strlen(szBuffer), wk->li->list[x]); 1272 // if (spaces)1273 // strcat(szBuffer, "\"");1274 1237 x++; 1275 1238 if (!wk->li->list[x] || … … 1277 1240 runemf2(SEPARATE | WINDOWED | WAIT | 1278 1241 (fArcStuffVisible ? 0 : (BACKGROUND | MINIMIZED)), 1279 HWND_DESKTOP, NULL, NULL,1242 HWND_DESKTOP, pszSrcFile, __LINE__, NULL, NULL, 1280 1243 "%s", szBuffer); 1281 1244 DosSleep(1); … … 1305 1268 ExecOnList((HWND) 0, 1306 1269 binview, 1307 WINDOWED | SEPARATE, NULL, wk->li->list, NULL); 1270 WINDOWED | SEPARATE, NULL, wk->li->list, NULL, 1271 pszSrcFile, __LINE__); 1308 1272 break; 1309 1273 } … … 1315 1279 WINDOWED | SEPARATE | 1316 1280 ((fViewChild) ? CHILD : 0), 1317 NULL, wk->li->list, NULL); 1281 NULL, wk->li->list, NULL, 1282 pszSrcFile, __LINE__); 1318 1283 else { 1319 1284 … … 1349 1314 ExecOnList((HWND) 0, 1350 1315 bined, 1351 WINDOWED | SEPARATE, NULL, wk->li->list, NULL); 1316 WINDOWED | SEPARATE, NULL, wk->li->list, NULL, 1317 pszSrcFile, __LINE__); 1352 1318 break; 1353 1319 } … … 1358 1324 ExecOnList((HWND) 0, 1359 1325 editor, 1360 WINDOWED | SEPARATE, NULL, wk->li->list, NULL); 1326 WINDOWED | SEPARATE, NULL, wk->li->list, NULL, 1327 pszSrcFile, __LINE__); 1361 1328 else { 1362 1329
Note:
See TracChangeset
for help on using the changeset viewer.