Changeset 1017 for trunk/dll/dircnrs.c


Ignore:
Timestamp:
May 26, 2008, 5:02:59 AM (17 years ago)
Author:
Gregg Young
Message:

fortify updates for threads dble free fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/dircnrs.c

    r1016 r1017  
    985985
    986986        WORKER *wk;
    987 
     987# ifdef FORTIFY
     988  Fortify_EnterScope();
     989# endif
    988990        wk = xmallocz(sizeof(WORKER), pszSrcFile, __LINE__);
    989991        if (!wk)
     
    10001002            Runtime_Error(pszSrcFile, __LINE__,
    10011003                          GetPString(IDS_COULDNTSTARTTHREADTEXT));
    1002             xfree(wk, pszSrcFile, __LINE__);
     1004            xfree(wk, pszSrcFile, __LINE__);
     1005# ifdef FORTIFY
     1006  Fortify_LeaveScope();
     1007# endif
    10031008            FreeListInfo((LISTINFO *) mp1);
    10041009          }
     
    10151020
    10161021        WORKER *wk;
    1017 
     1022# ifdef FORTIFY
     1023  Fortify_EnterScope();
     1024# endif
    10181025        wk = xmallocz(sizeof(WORKER), pszSrcFile, __LINE__);
    10191026        if (!wk)
     
    10301037            Runtime_Error(pszSrcFile, __LINE__,
    10311038                          GetPString(IDS_COULDNTSTARTTHREADTEXT));
    1032             xfree(wk, pszSrcFile, __LINE__);
     1039            xfree(wk, pszSrcFile, __LINE__);
     1040# ifdef FORTIFY
     1041  Fortify_LeaveScope();
     1042# endif
    10331043            FreeListInfo((LISTINFO *) mp1);
    10341044          }
     
    10551065      FreeList(dcd->lastselection);
    10561066      xfree(dcd, pszSrcFile, __LINE__);
     1067# ifdef FORTIFY
     1068  Fortify_LeaveScope();
     1069# endif
     1070      WinSetWindowPtr(dcd->hwndCnr, QWL_USER, NULL);
    10571071      DosPostEventSem(CompactSem);
    10581072    }
     
    33403354      FreeList(dcd->lastselection);
    33413355      xfree(dcd, pszSrcFile, __LINE__);
     3356# ifdef FORTIFY
     3357  Fortify_LeaveScope();
     3358# endif
    33423359      WinSetWindowPtr(hwnd, QWL_USER, NULL);
    3343       //Fortify_LeaveScope();
    33443360      DosPostEventSem(CompactSem);
    33453361    }
     
    34253441        idinc = 0;
    34263442      WinSetWindowUShort(hwndFrame, QWS_ID, id);
    3427       //Fortify_EnterScope();
     3443# ifdef FORTIFY
     3444  Fortify_EnterScope();
     3445# endif
    34283446      dcd = xmallocz(sizeof(DIRCNRDATA), pszSrcFile, __LINE__);
    34293447      if (!dcd) {
     
    34763494                     IDS_WINCREATEWINDOW);
    34773495          PostMsg(hwndClient, WM_CLOSE, MPVOID, MPVOID);
    3478           xfree(dcd, pszSrcFile, __LINE__);
     3496          xfree(dcd, pszSrcFile, __LINE__);
     3497# ifdef FORTIFY
     3498  Fortify_LeaveScope();
     3499# endif
    34793500          hwndFrame = (HWND) 0;
    34803501        }
Note: See TracChangeset for help on using the changeset viewer.