Changeset 1029 for trunk/dll/autoview.c


Ignore:
Timestamp:
Jun 23, 2008, 3:30:16 AM (17 years ago)
Author:
Gregg Young
Message:

Fixed early memory free; Added free_... functions to make fortify checking easier; Added fortify scopes; Delete now moves to trash can on systems with the xworkplace trash can installed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/autoview.c

    r1009 r1029  
    4444#include "strutil.h"                    // GetPString
    4545#include "fm3dll.h"
     46
     47#include "fortify.h"
    4648
    4749#pragma data_seg(DATA1)
     
    194196      break;
    195197    }
    196     pfealist->list[0].cbValue = (ULONG) (eaval -
     198    pfealist->list[0].cbValue = /*(ULONG)*/ (eaval -
    197199                                         (pfealist->list[0].szName +
    198200                                          pfealist->list[0].cbName + 1));
     
    416418                }
    417419                xfree(ibuff, pszSrcFile, __LINE__);
     420# ifdef FORTIFY
     421  Fortify_LeaveScope();
     422# endif
    418423              }
    419424              DosClose(handle);
     
    509514                  WinSetWindowText(hwndAutoview, pszBuf);
    510515                xfree(pszBuf, pszSrcFile, __LINE__);
     516# ifdef FORTIFY
     517  Fortify_LeaveScope();
     518# endif
    511519              }
    512520            }
     
    543551                                    (PVOID) & eaop, (ULONG) sizeof(EAOP2));
    544552              xfree(pgealist, pszSrcFile, __LINE__);
     553# ifdef FORTIFY
     554  Fortify_LeaveScope();
     555# endif
    545556              if (!rc) {
    546557                pfea = &eaop.fpFEA2List->list[0];
     
    612623      }
    613624      xfree((CHAR *)mp1, pszSrcFile, __LINE__);
     625# ifdef FORTIFY
     626  Fortify_LeaveScope();
     627# endif
    614628    }
    615629    return 0;
     
    788802              PostMsg(hwnd, WM_COMMAND, MPFROM2SHORT(IDM_RESCAN, 0), MPVOID);
    789803              xfree(ea, pszSrcFile, __LINE__);
     804# ifdef FORTIFY
     805  Fortify_LeaveScope();
     806# endif
    790807            }
    791808          }
     
    838855          if (!PostMsg(hwndAutoObj, UM_LOADFILE, MPFROMP(cf), MPVOID))
    839856            xfree(cf, pszSrcFile, __LINE__);
     857# ifdef FORTIFY
     858  Fortify_LeaveScope();
     859# endif
    840860        }
    841861      }
     
    894914    if (!PostMsg(hwndAutoObj, msg, mp1, mp2)) {
    895915      xfree((CHAR *)mp1, pszSrcFile, __LINE__);
     916# ifdef FORTIFY
     917  Fortify_LeaveScope();
     918# endif
    896919    }
    897920    return 0;
Note: See TracChangeset for help on using the changeset viewer.