Changeset 1079


Ignore:
Timestamp:
Jul 19, 2008, 6:41:55 AM (17 years ago)
Author:
Steven Levine
Message:

Avoid some more spurious leak reports

Location:
trunk/dll
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/dircnrs.c

    r1078 r1079  
    7171#include "fm3dll.h"
    7272#include "avl.h"                        // free_archivers
     73#ifdef FORTIFY
     74#include "misc.h"                       // GetTidForThread
     75#endif
    7376#include "fortify.h"
    7477
     
    641644  case UM_SETUP:
    642645#   ifdef FORTIFY
     646    DbgMsg(pszSrcFile, __LINE__, "UM_SETUP hwnd %p TID %u", hwnd, GetTidForThread());   // 18 Jul 08 SHL fixme
    643647    Fortify_EnterScope();
    644648#   endif
     
    10661070  case WM_DESTROY:
    10671071#   ifdef FORTIFY
    1068     DbgMsg(pszSrcFile, __LINE__, "WM_DESTROY hwnd %p", hwnd);   // 18 Jul 08 SHL fixme
     1072    DbgMsg(pszSrcFile, __LINE__, "WM_DESTROY hwnd %p TID %u", hwnd, GetTidForThread()); // 18 Jul 08 SHL fixme
    10691073#   endif
    10701074    dcd = WinQueryWindowPtr(hwnd, QWL_USER);
     
    34123416  case WM_DESTROY:
    34133417#   ifdef FORTIFY
    3414     DbgMsg(pszSrcFile, __LINE__, "WM_DESTROY hwnd %p", hwnd);   // 18 Jul 08 SHL fixme
     3418    DbgMsg(pszSrcFile, __LINE__, "WM_DESTROY hwnd %p TID %u", hwnd, GetTidForThread()); // 18 Jul 08 SHL fixme
    34153419#   endif
    34163420    if (DirMenu)
  • trunk/dll/tools.c

    r1039 r1079  
    3434#include "errutil.h"                    // Dos_Error...
    3535#include "strutil.h"                    // GetPString
     36#include "fortify.h"
    3637#include "fm3dll.h"
    37 #include "fortify.h"
    3838
    3939#pragma data_seg(DATA1)
     
    146146        info = xmallocz(sizeof(TOOL), pszSrcFile, __LINE__);
    147147        if (info) {
     148#         ifdef FORTIFY
     149          Fortify_SetOwner(info, 1);
     150          Fortify_SetScope(info, 1);
     151#         endif
    148152          if (*help) {
    149153            literal(help);
    150             if (*help)
     154            if (*help) {
    151155              info->help = xstrdup(help, pszSrcFile, __LINE__);
     156#             ifdef FORTIFY
     157              Fortify_SetOwner(info->help, 1);
     158              Fortify_SetScope(info->help, 1);
     159#             endif
     160            }
    152161          }
    153           if (*text)
     162          if (*text) {
    154163            info->text = xstrdup(text, pszSrcFile, __LINE__);
     164#           ifdef FORTIFY
     165            Fortify_SetOwner(info->text, 1);
     166            Fortify_SetScope(info->text, 1);
     167#           endif
     168          }
    155169          info->flags = (atoi(flagstr) & (~(T_TEXT | T_EMPHASIZED)));
    156170          info->id = (USHORT) atoi(idstr);
  • trunk/dll/treecnr.c

    r1078 r1079  
    12371237                        GetPString(IDS_COULDNTSTARTTHREADTEXT));
    12381238          PostMsg(hwnd, WM_CLOSE, MPVOID, MPVOID);
    1239           return 0;
     1239          // return 0;
    12401240        }
    12411241        else
    12421242          DosSleep(1);
     1243#       ifdef FORTIFY
     1244        Fortify_LeaveScope();
     1245#       endif
    12431246      }
    12441247    }
Note: See TracChangeset for help on using the changeset viewer.