Changeset 1029 for trunk/dll/worker.c
- Timestamp:
- Jun 23, 2008, 3:30:16 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/worker.c
r1018 r1029 26 26 29 Feb 08 GKY Use xfree where appropriate 27 27 29 Feb 08 GKY Refactor global command line variables to notebook.h 28 22 Jun 08 GKY Made Felete move to xworkplace trash can on systems that have it 28 29 29 30 ***********************************************************************/ … … 41 42 #define INCL_LONGLONG 42 43 #define INCL_WINPOINTERS 44 #define INCL_WINWORKPLACE 43 45 44 46 #include "fm3dlg.h" … … 134 136 135 137 if (wk) { 138 # ifdef FORTIFY 139 Fortify_EnterScope(); 140 # endif 136 141 if (wk->li && wk->li->list && wk->li->list[0]) { 137 142 hab2 = WinInitialize(0); … … 265 270 UM_COLLECTFROMFILE, MPFROMP(temp), MPVOID)) 266 271 xfree(temp, pszSrcFile, __LINE__); 272 # ifdef FORTIFY 273 Fortify_LeaveScope(); 274 # endif 267 275 } 268 276 } … … 990 998 991 999 if (wk) { 1000 # ifdef FORTIFY 1001 Fortify_EnterScope(); 1002 # endif 992 1003 if (wk->li && wk->li->list && wk->li->list[0]) { 993 1004 hab2 = WinInitialize(0); … … 1131 1142 strcpy(p, wk->li->list[x]); 1132 1143 xfree(wk->li->list[x], pszSrcFile, __LINE__); 1144 # ifdef FORTIFY 1145 Fortify_LeaveScope(); 1146 # endif 1133 1147 wk->li->list[x] = xstrdup(szBuffer, pszSrcFile, __LINE__); 1134 1148 } … … 1311 1325 MPFROMLONG(5 + viewtype), MPFROMP(temp))) 1312 1326 xfree(temp, pszSrcFile, __LINE__); 1327 # ifdef FORTIFY 1328 Fortify_LeaveScope(); 1329 # endif 1313 1330 } 1314 1331 DosSleep(1); … … 1356 1373 MPFROMLONG(4 + viewtype), MPFROMP(temp))) 1357 1374 xfree(temp, pszSrcFile, __LINE__); 1375 # ifdef FORTIFY 1376 Fortify_LeaveScope(); 1377 # endif 1358 1378 } 1359 1379 DosSleep(1); … … 1433 1453 CHAR prompt[CCHMAXPATH * 3]; 1434 1454 APIRET error; 1455 HOBJECT hObjectdest, hObjectofObject; 1435 1456 1436 1457 for (x = 0; wk->li->list[x]; x++) { … … 1556 1577 AddNote(prompt); 1557 1578 DosError(FERR_DISABLEHARDERR); 1558 if (wk->li->type == IDM_DELETE) 1559 error = DosDelete(wk->li->list[x]); 1579 if (wk->li->type == IDM_DELETE){ 1580 hObjectdest = WinQueryObject("<XWP_TRASHCAN>"); 1581 if (hObjectdest != NULLHANDLE){ 1582 hObjectofObject = WinQueryObject(wk->li->list[x]); 1583 error = WinMoveObject(hObjectofObject, hObjectdest, 0); 1584 } 1585 else 1586 error = DosDelete(wk->li->list[x]); 1587 } 1560 1588 else 1561 1589 error = DosForceDelete(wk->li->list[x]); … … 1563 1591 DosError(FERR_DISABLEHARDERR); 1564 1592 make_deleteable(wk->li->list[x]); 1565 if (wk->li->type == IDM_DELETE) 1566 error = DosDelete(wk->li->list[x]); 1593 if (wk->li->type == IDM_DELETE){ 1594 hObjectdest = WinQueryObject("<XWP_TRASHCAN>"); 1595 if (hObjectdest != NULLHANDLE){ 1596 hObjectofObject = WinQueryObject(wk->li->list[x]); 1597 error = WinMoveObject(hObjectofObject, hObjectdest, 0); 1598 } 1599 else 1600 error = DosDelete(wk->li->list[x]); 1601 } 1567 1602 else 1568 1603 error = DosForceDelete(wk->li->list[x]);
Note:
See TracChangeset
for help on using the changeset viewer.