Changeset 1038 for trunk/dll/comp.c


Ignore:
Timestamp:
Jul 4, 2008, 10:33:59 PM (17 years ago)
Author:
Gregg Young
Message:

More fortify cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/comp.c

    r1036 r1038  
    201201    hab2 = WinInitialize(0);
    202202    if (hab2) {
    203       hmq2 = WinCreateMsgQueue(hab2, 0);
    204       if (hmq2) {
    205203# ifdef FORTIFY
    206204  Fortify_EnterScope();
    207205# endif
     206      hmq2 = WinCreateMsgQueue(hab2, 0);
     207      if (hmq2) {
    208208        WinCancelShutdown(hmq2, TRUE);
    209209        IncrThreadUsage();
     
    316316      WinTerminate(hab2);
    317317# ifdef FORTIFY
    318       Fortify_LeaveScope(pszSrcFile, __LINE__);
     318      Fortify_LeaveScope();
    319319# endif
    320320    }
     
    408408  hab = WinInitialize(0);
    409409  if (hab) {
    410     hmq = WinCreateMsgQueue(hab, 0);
    411     if (hmq) {
    412410# ifdef FORTIFY
    413411  Fortify_EnterScope();
    414412# endif
     413    hmq = WinCreateMsgQueue(hab, 0);
     414    if (hmq) {
    415415      WinCancelShutdown(hmq, TRUE);
    416416      IncrThreadUsage();
     
    694694    WinTerminate(hab);
    695695# ifdef FORTIFY
    696     Fortify_LeaveScope(pszSrcFile, __LINE__);
     696    Fortify_LeaveScope();
    697697# endif
    698698  }
     
    720720  hab = WinInitialize(0);
    721721  if (hab) {
    722     hmq = WinCreateMsgQueue(hab, 0);
    723     if (hmq) {
    724722# ifdef FORTIFY
    725723  Fortify_EnterScope();
    726724# endif
     725    hmq = WinCreateMsgQueue(hab, 0);
     726    if (hmq) {
    727727      WinCancelShutdown(hmq, TRUE);
    728728      IncrThreadUsage();
     
    759759    WinTerminate(hab);
    760760# ifdef FORTIFY
    761     Fortify_LeaveScope(pszSrcFile, __LINE__);
     761    Fortify_LeaveScope();
    762762# endif
    763763  }
     
    19551955
    19561956          if (x <= 0) {
    1957 # ifdef FORTIFY
    1958             xfree(filesl[l++], pszSrcFile, __LINE__);
    1959 # else
    19601957            free(filesl[l++]);          // Done with item on left
    1961 # endif
    19621958          }
    19631959          if (x >= 0) {
    1964 # ifdef FORTIFY
    1965             xfree(filesr[r++], pszSrcFile, __LINE__);
    1966 # else
    19671960            free(filesr[r++]);          // Done with item on right
    1968 #endif
    19691961          }
    19701962          // Ensure empty buffers point somewhere
     
    20172009          if (filesl) {
    20182010            for(; filesl[l]; l++) {
    2019 # ifdef FORTIFY
    2020               xfree(filesl[l], pszSrcFile, __LINE__);
    2021 # else
    20222011              free(filesl[l]);
    2023 # endif
    20242012            }
    20252013          }
     
    20332021          if (filesr) {
    20342022            for (; filesr[r]; r++) {
    2035 # ifdef FORTIFY
    2036               xfree(filesr[r], pszSrcFile, __LINE__);
    2037 # else
    20382023              free(filesr[r]);
    2039 # endif
    20402024            }
    20412025          }
     
    21172101
    21182102# ifdef FORTIFY
    2119   Fortify_LeaveScope(pszSrcFile, __LINE__);
     2103  Fortify_LeaveScope();
    21202104# endif
    21212105
Note: See TracChangeset for help on using the changeset viewer.