Changeset 1063


Ignore:
Timestamp:
Jul 11, 2008, 5:33:36 AM (17 years ago)
Author:
Gregg Young
Message:

Fortify ifdef reformat

Location:
trunk/dll
Files:
29 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/arccnrs.c

    r1040 r1063  
    338338    pai->pszFileName = NullStr;
    339339    free(psz);
    340 # ifdef FORTIFY
    341   Fortify_LeaveScope();
    342 # endif
    343340  }
    344341}
     
    20082005      WinSendMsg(dcd->hwndCnr, UM_CLOSE, MPVOID, MPVOID);
    20092006      free(dcd);
    2010 # ifdef FORTIFY
    2011   Fortify_LeaveScope();
    2012 # endif
     2007#     ifdef FORTIFY
     2008      Fortify_LeaveScope();
     2009#      endif
    20132010      WinSetWindowPtr(dcd->hwndCnr, QWL_USER, NULL);
    20142011    }
     
    29142911        {
    29152912          LISTINFO *li;
    2916 # ifdef FORTIFY
    2917   Fortify_EnterScope();
    2918 # endif
     2913#         ifdef FORTIFY
     2914          Fortify_EnterScope();
     2915#          endif
    29192916          li = xmallocz(sizeof(LISTINFO), pszSrcFile, __LINE__);
    29202917          if (li) {
     
    29912988            else
    29922989              free(li);
    2993 # ifdef FORTIFY
    2994   Fortify_LeaveScope();
    2995 # endif
     2990#             ifdef FORTIFY
     2991              Fortify_LeaveScope();
     2992#              endif
    29962993          }
    29972994        }
     
    34643461        idinc = 0;
    34653462      WinSetWindowUShort(hwndFrame, QWS_ID, id);
    3466 # ifdef FORTIFY
    3467   Fortify_EnterScope();
    3468 # endif
     3463#     ifdef FORTIFY
     3464      Fortify_EnterScope();
     3465#      endif
    34693466      dcd = xmallocz(sizeof(DIRCNRDATA), pszSrcFile, __LINE__);
    34703467      if (!dcd) {
     
    35513548          PostMsg(hwndClient, WM_CLOSE, MPVOID, MPVOID);
    35523549          free(dcd);
    3553 # ifdef FORTIFY
    3554   Fortify_LeaveScope();
    3555 # endif
     3550#         ifdef FORTIFY
     3551          Fortify_LeaveScope();
     3552#          endif
    35563553          hwndFrame = (HWND) 0;
    35573554        }
  • trunk/dll/autoview.c

    r1039 r1063  
    614614      }
    615615      free((CHAR *)mp1);
    616 # ifdef FORTIFY
    617   Fortify_LeaveScope();
    618 # endif
     616#     ifdef FORTIFY
     617      Fortify_LeaveScope();
     618#      endif
    619619    }
    620620    return 0;
     
    638638  hab2 = WinInitialize(0);
    639639  if (hab2) {
    640 # ifdef FORTIFY
    641   Fortify_EnterScope();
    642 # endif
     640#   ifdef FORTIFY
     641    Fortify_EnterScope();
     642#    endif
    643643    hmq2 = WinCreateMsgQueue(hab2, 128);
    644644    if (hmq2) {
     
    673673    // else
    674674    WinTerminate(hab2);
    675 # ifdef FORTIFY
     675#   ifdef FORTIFY
    676676    Fortify_LeaveScope();
    677 # endif
     677#    endif
    678678  }
    679679}
     
    799799              PostMsg(hwnd, WM_COMMAND, MPFROM2SHORT(IDM_RESCAN, 0), MPVOID);
    800800              free(ea);
    801 # ifdef FORTIFY
    802   Fortify_LeaveScope();
    803 # endif
     801#             ifdef FORTIFY
     802              Fortify_LeaveScope();
     803#              endif
    804804            }
    805805          }
     
    852852          if (!PostMsg(hwndAutoObj, UM_LOADFILE, MPFROMP(cf), MPVOID))
    853853            free(cf);
    854 # ifdef FORTIFY
    855   Fortify_LeaveScope();
    856 # endif
     854#           ifdef FORTIFY
     855            Fortify_LeaveScope();
     856#            endif
    857857        }
    858858      }
     
    911911    if (!PostMsg(hwndAutoObj, msg, mp1, mp2)) {
    912912      xfree((CHAR *)mp1, pszSrcFile, __LINE__);
    913 # ifdef FORTIFY
    914   Fortify_LeaveScope();
    915 # endif
     913#     ifdef FORTIFY
     914      Fortify_LeaveScope();
     915#      endif
    916916    }
    917917    return 0;
  • trunk/dll/collect.c

    r1041 r1063  
    786786    }
    787787    xfree(mp1, pszSrcFile, __LINE__);
    788 # ifdef FORTIFY
    789   Fortify_LeaveScope();
    790 # endif
     788#   ifdef FORTIFY
     789    Fortify_LeaveScope();
     790#    endif
    791791    return 0;
    792792
     
    891891      if (dcd) {
    892892        WORKER *wk;
    893 # ifdef FORTIFY
    894   Fortify_EnterScope();
    895 # endif
     893#       ifdef FORTIFY
     894        Fortify_EnterScope();
     895#        endif
    896896        wk = xmallocz(sizeof(WORKER), pszSrcFile, __LINE__);
    897897        if (!wk)
     
    909909                          GetPString(IDS_COULDNTSTARTTHREADTEXT));
    910910            free(wk);
    911 # ifdef FORTIFY
    912   Fortify_LeaveScope();
    913 # endif
    914911            FreeListInfo((LISTINFO *) mp1);
     912#           ifdef FORTIFY
     913            Fortify_LeaveScope();
     914#            endif
    915915          }
    916916        }
     
    924924      if (dcd) {
    925925        WORKER *wk;
    926 # ifdef FORTIFY
    927   Fortify_EnterScope();
    928 # endif
     926#       ifdef FORTIFY
     927        Fortify_EnterScope();
     928#        endif
    929929        wk = xmallocz(sizeof(WORKER), pszSrcFile, __LINE__);
    930930        if (!wk)
     
    942942                          GetPString(IDS_COULDNTSTARTTHREADTEXT));
    943943            free(wk);
    944 # ifdef FORTIFY
    945   Fortify_LeaveScope();
    946 # endif
    947944            FreeListInfo((LISTINFO *) mp1);
     945#           ifdef FORTIFY
     946            Fortify_LeaveScope();
     947#            endif
    948948          }
    949949        }
     
    970970      FreeList(dcd->lastselection);
    971971      free(dcd);
    972 # ifdef FORTIFY
    973   Fortify_LeaveScope();
    974 # endif
     972#     ifdef FORTIFY
     973      Fortify_LeaveScope();
     974#      endif
    975975      WinSetWindowPtr(dcd->hwndCnr, QWL_USER, NULL);
    976976    }
     
    14691469      if (!dcd) {
    14701470        free(mp1);
    1471 # ifdef FORTIFY
    1472   Fortify_LeaveScope();
    1473 # endif
     1471#       ifdef FORTIFY
     1472        Fortify_LeaveScope();
     1473#        endif
    14741474        Runtime_Error2(pszSrcFile, __LINE__, IDS_NODATATEXT);
    14751475      }
     
    14781478          Runtime_Error(pszSrcFile, __LINE__, "PostMsg");
    14791479          free(mp1);
    1480 # ifdef FORTIFY
    1481   Fortify_LeaveScope();
    1482 # endif
     1480#         ifdef FORTIFY
     1481          Fortify_LeaveScope();
     1482#          endif
    14831483        }
    14841484      }
     
    16071607              if (!PostMsg(hwnd, UM_COLLECTFROMFILE, MPFROMP(p), MPVOID))
    16081608                free(p);
    1609 # ifdef FORTIFY
    1610   Fortify_LeaveScope();
    1611 # endif
     1609#               ifdef FORTIFY
     1610                Fortify_LeaveScope();
     1611#                endif
    16121612            }
    16131613          }
     
    17241724        {
    17251725          LISTINFO *li;
    1726 # ifdef FORTIFY
    1727   Fortify_EnterScope();
    1728 # endif
     1726#         ifdef FORTIFY
     1727          Fortify_EnterScope();
     1728#          endif
    17291729          li = xmallocz(sizeof(LISTINFO), pszSrcFile, __LINE__);
    17301730          if (li) {
     
    17751775        if (mp2) {
    17761776          LISTINFO *li;
    1777 # ifdef FORTIFY
    1778   Fortify_EnterScope();
    1779 # endif
     1777#         ifdef FORTIFY
     1778          Fortify_EnterScope();
     1779#          endif
    17801780          li = xmallocz(sizeof(LISTINFO), pszSrcFile, __LINE__);
    17811781          if (li) {
     
    20892089          LISTINFO *li;
    20902090          ULONG action = UM_ACTION;
    2091 # ifdef FORTIFY
    2092   Fortify_EnterScope();
    2093 # endif
     2091#         ifdef FORTIFY
     2092          Fortify_EnterScope();
     2093#          endif
    20942094          li = xmallocz(sizeof(LISTINFO), pszSrcFile, __LINE__);
    20952095          if (li) {
     
    21362136            else
    21372137              free(li);
    2138 # ifdef FORTIFY
    2139   Fortify_LeaveScope();
    2140 # endif
     2138#             ifdef FORTIFY
     2139              Fortify_LeaveScope();
     2140#              endif
    21412141          }
    21422142        }
     
    28542854    id = COLLECTOR_FRAME + idinc++;
    28552855    WinSetWindowUShort(hwndFrame, QWS_ID, id);
    2856 # ifdef FORTIFY
    2857   Fortify_EnterScope();
    2858 # endif
     2856#   ifdef FORTIFY
     2857    Fortify_EnterScope();
     2858#    endif
    28592859    dcd = xmallocz(sizeof(DIRCNRDATA), pszSrcFile, __LINE__);
    28602860    if (!dcd) {
     
    28962896        PostMsg(hwndClient, WM_CLOSE, MPVOID, MPVOID);
    28972897        free(dcd);
    2898 # ifdef FORTIFY
    2899   Fortify_LeaveScope();
    2900 # endif
     2898#       ifdef FORTIFY
     2899        Fortify_LeaveScope();
     2900#        endif
    29012901        hwndFrame = (HWND) 0;
    29022902      }
  • trunk/dll/comp.c

    r1039 r1063  
    201201    hab2 = WinInitialize(0);
    202202    if (hab2) {
    203 # ifdef FORTIFY
    204   Fortify_EnterScope();
    205 # endif
     203#     ifdef FORTIFY
     204      Fortify_EnterScope();
     205#      endif
    206206      hmq2 = WinCreateMsgQueue(hab2, 0);
    207207      if (hmq2) {
     
    315315      }
    316316      WinTerminate(hab2);
    317 # ifdef FORTIFY
     317#     ifdef FORTIFY
    318318      Fortify_LeaveScope();
    319 # endif
     319#      endif
    320320    }
    321321  }
     
    408408  hab = WinInitialize(0);
    409409  if (hab) {
    410 # ifdef FORTIFY
    411   Fortify_EnterScope();
    412 # endif
     410#   ifdef FORTIFY
     411    Fortify_EnterScope();
     412#    endif
    413413    hmq = WinCreateMsgQueue(hab, 0);
    414414    if (hmq) {
     
    693693    free(cmp);
    694694    WinTerminate(hab);
    695 # ifdef FORTIFY
     695#   ifdef FORTIFY
    696696    Fortify_LeaveScope();
    697 # endif
     697#    endif
    698698  }
    699699  else
     
    720720  hab = WinInitialize(0);
    721721  if (hab) {
    722 # ifdef FORTIFY
    723   Fortify_EnterScope();
    724 # endif
     722#   ifdef FORTIFY
     723    Fortify_EnterScope();
     724#    endif
    725725    hmq = WinCreateMsgQueue(hab, 0);
    726726    if (hmq) {
     
    758758    free(cmp);
    759759    WinTerminate(hab);
    760 # ifdef FORTIFY
     760#   ifdef FORTIFY
    761761    Fortify_LeaveScope();
    762 # endif
     762#    endif
    763763  }
    764764  else
     
    14711471  // 10 May 08 SHL fixme to suppress W111
    14721472  Fortify_EnterScope();
    1473 # endif
     1473#  endif
    14741474
    14751475  if (!cmp) {
    14761476    Runtime_Error2(pszSrcFile, __LINE__, IDS_NODATATEXT);
    1477 # ifdef FORTIFY
     1477#   ifdef FORTIFY
    14781478    // 10 May 08 SHL fixme to suppress W111
    14791479    Fortify_LeaveScope();
    1480 # endif
     1480#    endif
    14811481    _endthread();
    14821482  }
     
    21022102# ifdef FORTIFY
    21032103  Fortify_LeaveScope();
    2104 # endif
     2104#  endif
    21052105
    21062106  // DbgMsg(pszSrcFile, __LINE__, "FillCnrsThread exit");
     
    26512651      WinCheckButton(hwnd, COMP_HIDENOTSELECTED, 0);
    26522652      cmp->filling = TRUE;
    2653 # ifdef FORTIFY
    2654   Fortify_EnterScope();
    2655 # endif
     2653#     ifdef FORTIFY
     2654      Fortify_EnterScope();
     2655#      endif
    26562656      forthread = xmalloc(sizeof(COMPARE), pszSrcFile, __LINE__);
    26572657      if (!forthread)
     
    26662666          WinDismissDlg(hwnd, 0);
    26672667          free(forthread);
    2668 # ifdef FORTIFY
    2669   Fortify_LeaveScope();
    2670 # endif
     2668#         ifdef FORTIFY
     2669          Fortify_LeaveScope();
     2670#          endif
    26712671        }
    26722672        else {
  • trunk/dll/datamin.c

    r1038 r1063  
    984984# ifdef FORTIFY
    985985  Fortify_EnterScope();
    986 # endif
     986#  endif
    987987  if (G_hevDataMin == NULLHANDLE) {
    988988    // Create just once for any thread that might use it
     
    10781078  if (hab != NULLHANDLE)
    10791079    WinTerminate(hab);
    1080 # ifdef FORTIFY
     1080#   ifdef FORTIFY
    10811081    Fortify_LeaveScope();
    1082 # endif
     1082#    endif
    10831083}                                       // dataminThread
    10841084
  • trunk/dll/dircnrs.c

    r1041 r1063  
    990990
    991991        WORKER *wk;
    992 # ifdef FORTIFY
    993   Fortify_EnterScope();
    994 # endif
     992#       ifdef FORTIFY
     993        Fortify_EnterScope();
     994#        endif
    995995        wk = xmallocz(sizeof(WORKER), pszSrcFile, __LINE__);
    996996        if (!wk)
     
    10091009            free(wk);
    10101010            FreeListInfo((LISTINFO *) mp1);
    1011 # ifdef FORTIFY
    1012   Fortify_LeaveScope();
    1013 # endif
     1011#           ifdef FORTIFY
     1012            Fortify_LeaveScope();
     1013#            endif
    10141014          }
    10151015        }
     
    10251025
    10261026        WORKER *wk;
    1027 # ifdef FORTIFY
    1028   Fortify_EnterScope();
    1029 # endif
     1027#       ifdef FORTIFY
     1028        Fortify_EnterScope();
     1029#        endif
    10301030        wk = xmallocz(sizeof(WORKER), pszSrcFile, __LINE__);
    10311031        if (!wk)
     
    10441044            free(wk);
    10451045            FreeListInfo((LISTINFO *) mp1);
    1046 # ifdef FORTIFY
    1047   Fortify_LeaveScope();
    1048 # endif
     1046#           ifdef FORTIFY
     1047            Fortify_LeaveScope();
     1048#            endif
    10491049          }
    10501050        }
     
    10701070      FreeList(dcd->lastselection);
    10711071      xfree(dcd, pszSrcFile, __LINE__);
    1072 # ifdef FORTIFY
    1073   Fortify_LeaveScope();
    1074 # endif
     1072#     ifdef FORTIFY
     1073      Fortify_LeaveScope();
     1074#      endif
    10751075      WinSetWindowPtr(dcd->hwndCnr, QWL_USER, NULL);
    10761076      DosPostEventSem(CompactSem);
     
    34653465        idinc = 0;
    34663466      WinSetWindowUShort(hwndFrame, QWS_ID, id);
    3467 # ifdef FORTIFY
    3468   Fortify_EnterScope();
    3469 # endif
     3467#     ifdef FORTIFY
     3468      Fortify_EnterScope();
     3469#      endif
    34703470      dcd = xmallocz(sizeof(DIRCNRDATA), pszSrcFile, __LINE__);
    34713471      if (!dcd) {
     
    35193519          PostMsg(hwndClient, WM_CLOSE, MPVOID, MPVOID);
    35203520          free(dcd);
    3521 # ifdef FORTIFY
    3522   Fortify_LeaveScope();
    3523 # endif
     3521#         ifdef FORTIFY
     3522          Fortify_LeaveScope();
     3523#          endif
    35243524          hwndFrame = (HWND) 0;
    35253525        }
  • trunk/dll/dirsize.c

    r1051 r1063  
    6969typedef struct
    7070{
    71   CHAR szDirName[CCHMAXPATH];
     71  CHAR szDirName[CCHMAXPATH + 320];
    7272  CHAR chStopFlag;
    7373  BOOL dying;
     
    309309    CHAR szAllDir[80];
    310310    CHAR szBar[80];
    311     CHAR szBuf[CCHMAXPATH * 2];
    312 
    313 # ifdef FORTIFY
    314   Fortify_EnterScope();
    315 # endif
     311    CHAR szBuf[CCHMAXPATH + 320];
     312
     313#   ifdef FORTIFY
     314    Fortify_EnterScope();
     315#    endif
    316316
    317317    // cbFile = currect directory usage in bytes
     
    437437# ifdef FORTIFY
    438438  Fortify_EnterScope();
    439 # endif
     439#  endif
    440440
    441441  hwndCnr = dirsize->hwndCnr;
     
    467467# ifdef FORTIFY
    468468  Fortify_LeaveScope();
    469 # endif
     469#  endif
    470470}
    471471
     
    483483      break;
    484484    }
    485 # ifdef FORTIFY
    486   Fortify_EnterScope();
    487 # endif
     485#   ifdef FORTIFY
     486    Fortify_EnterScope();
     487#    endif
    488488    pState = xmallocz(sizeof(tState), pszSrcFile, __LINE__);
    489489    if (!pState) {
     
    10251025      DosSleep(16); //05 Aug 07 GKY 33
    10261026      xfree(pState, pszSrcFile, __LINE__); // Let's hope no one is still looking
    1027 # ifdef FORTIFY
    1028   Fortify_LeaveScope();
    1029 # endif
     1027#     ifdef FORTIFY
     1028      Fortify_LeaveScope();
     1029#      endif
    10301030    }
    10311031    DosPostEventSem(CompactSem);
  • trunk/dll/droplist.c

    r1018 r1063  
    467467
    468468  if (files && numfiles && files[0] && pcbFile && pulitemID) {
    469 # ifdef FORTIFY
    470   Fortify_EnterScope();
    471 # endif
     469#   ifdef FORTIFY
     470    Fortify_EnterScope();
     471#    endif
    472472    li = xmallocz(sizeof(LISTINFO), pszSrcFile, __LINE__);
    473473    if (li) {
     
    503503
    504504  FreeDragInfoData(hwndCnr, pDInfo);
     505# ifdef FORTIFY
     506  Fortify_LeaveScope();
     507#  endif
    505508
    506509  // 02 Aug 07 SHL fixme to be gone someday or use Runtime_Error if really an error
  • trunk/dll/filldir.c

    r1053 r1063  
    4141  04 Nov 07 GKY Use commaFmtULL to display large file sizes
    4242  29 Feb 08 GKY Use xfree where appropriate
     43  07 Jul 08 SHL Use NULL rather than NullStr in FreeCnrItemData
    4344
    4445***********************************************************************/
     
    318319
    319320  // load the object's longname
    320   pci->pszLongName = 0;
     321  pci->pszLongName = NULL;
    321322  if (fLoadLongnames &&
    322323      dcd &&
     
    546547    pci->pszSubject = NullStr;
    547548
    548   pci->pszLongName = 0;
     549  pci->pszLongName = NULL;
    549550  if (fLoadLongnames &&
    550551      dcd &&
     
    15821583
    15831584  if (pci->pszSubject && pci->pszSubject != NullStr) {
    1584 
    15851585    psz = pci->pszSubject;
    1586     pci->pszSubject = NullStr;
     1586    // pci->pszSubject = NullStr;
     1587    pci->pszSubject = NULL;             // for debug
    15871588    free(psz);
    15881589  }
     
    15951596      pci->pszLongName != pci->pszDisplayName + 1) {
    15961597    psz = pci->pszLongName;
    1597     pci->pszLongName = NullStr;
     1598    //pci->pszLongName = NullStr;
     1599    pci->pszLongName = NULL;
    15981600    free(psz);
    15991601  }
     
    16011603  if (pci->pszFileName && pci->pszFileName != NullStr) {
    16021604    psz = pci->pszFileName;
    1603     pci->pszFileName = NullStr;
     1605    //pci->pszFileName = NullStr;
     1606    pci->pszFileName = NULL;
    16041607    free(psz);
    16051608  }
     
    16071610  if (pci->pszFmtFileSize && pci->pszFmtFileSize != NullStr) {
    16081611    psz = pci->pszFmtFileSize;
    1609     pci->pszFmtFileSize = NullStr;
     1612    //pci->pszFmtFileSize = NullStr;
     1613    pci->pszFmtFileSize = NULL;
    16101614    free(psz);
    16111615  }
    1612 // # ifdef FORTIFY
    1613 //   Fortify_LeaveScope();
    1614 // # endif
    16151616}
    16161617
  • trunk/dll/grep.c

    r1039 r1063  
    278278# ifdef FORTIFY
    279279  Fortify_EnterScope();
    280 # endif
     280#  endif
    281281  grep = *(GREP *)arg;
    282282  *grep.stopflag = 0;                   // reset thread-killing flag
     
    417417# ifdef FORTIFY
    418418  Fortify_LeaveScope();
    419 # endif
     419#  endif
    420420  DosPostEventSem(CompactSem);
    421421}
     
    617617              DosFindClose(findHandle);
    618618              free(pffbArray);
    619 # ifdef FORTIFY
    620   Fortify_LeaveScope();
    621 # endif
     619#             ifdef FORTIFY
     620              Fortify_LeaveScope();
     621#              endif
    622622              return 1;
    623623            }
     
    648648# ifdef FORTIFY
    649649  Fortify_LeaveScope();
    650 # endif
     650#  endif
    651651  return 0;
    652652}
     
    673673    grep->toinsert = 0L;
    674674    grep->insertedbytes = 0L;
    675 # ifdef FORTIFY
    676   Fortify_LeaveScope();
    677 # endif
     675#   ifdef FORTIFY
     676    Fortify_LeaveScope();
     677#    endif
    678678  }
    679679}
     
    783783        if (!grep->dir) {
    784784          free(grep->insertffb);
    785 # ifdef FORTIFY
    786   Fortify_LeaveScope();
    787 # endif
     785#         ifdef FORTIFY
     786          Fortify_LeaveScope();
     787#          endif
    788788          return FALSE;
    789789        }
     
    799799      if (!grep->dir) {
    800800        free(grep->insertffb[grep->toinsert]);
    801 # ifdef FORTIFY
    802   Fortify_LeaveScope();
    803 # endif
     801#       ifdef FORTIFY
     802        Fortify_LeaveScope();
     803#        endif
    804804        return FALSE;
    805805      }
     
    10191019      }
    10201020      free(input);
    1021 # ifdef FORTIFY
    1022   Fortify_LeaveScope();
    1023 # endif
     1021#     ifdef FORTIFY
     1022      Fortify_LeaveScope();
     1023#      endif
    10241024      // DosSleep(1);                   // 07 Feb 08 SHL
    10251025    }
     
    11361136    }
    11371137    free(buffer);
    1138 # ifdef FORTIFY
    1139   Fortify_LeaveScope();
    1140 # endif
     1138#   ifdef FORTIFY
     1139    Fortify_LeaveScope();
     1140#    endif
    11411141  }
    11421142  return CRC;
     
    11621162# ifdef FORTIFY
    11631163  Fortify_LeaveScope();
    1164 # endif
     1164#  endif
    11651165}
    11661166
     
    15121512      xfree(grep->dupesizes, pszSrcFile, __LINE__);
    15131513      grep->dupesizes = NULL;
    1514 # ifdef FORTIFY
    1515   Fortify_LeaveScope();
    1516 # endif
     1514#     ifdef FORTIFY
     1515      Fortify_LeaveScope();
     1516#      endif
    15171517
    15181518      InitITimer(pitdSleep, 0);         // Reset rate estimator
     
    16291629    if (!info->name) {
    16301630      free(info);
    1631 # ifdef FORTIFY
    1632   Fortify_LeaveScope();
    1633 # endif
     1631#     ifdef FORTIFY
     1632      Fortify_LeaveScope();
     1633#      endif
    16341634      return FALSE;
    16351635    }
  • trunk/dll/grep2.c

    r1047 r1063  
    825825          WinSetFocus(HWND_DESKTOP, WinWindowFromID(hwnd, GREP_MASK));
    826826          free(p);
    827 # ifdef FORTIFY
    828   Fortify_LeaveScope();
    829 # endif
     827#         ifdef FORTIFY
     828          Fortify_LeaveScope();
     829#          endif
    830830          break;
    831831        }
     
    927927                        GetPString(IDS_COULDNTSTARTTHREADTEXT));
    928928          free(p);
    929 # ifdef FORTIFY
    930   Fortify_LeaveScope();
    931 # endif
     929#         ifdef FORTIFY
     930          Fortify_LeaveScope();
     931#          endif
    932932          WinDismissDlg(hwnd, 0);
    933933          break;
     
    935935        DosSleep(100); //05 Aug 07 GKY 128
    936936        free(p);
    937 # ifdef FORTIFY
    938   Fortify_LeaveScope();
    939 # endif
     937#       ifdef FORTIFY
     938        Fortify_LeaveScope();
     939#        endif
    940940      }
    941941      if (changed) {
  • trunk/dll/inis.c

    r1039 r1063  
    127127
    128128  if (inirec) {
    129 # ifdef FORTIFY
    130   Fortify_EnterScope();
    131 # endif
     129#   ifdef FORTIFY
     130    Fortify_EnterScope();
     131#    endif
    132132    hab2 = WinInitialize(0);
    133133    if (hab2) {
     
    297297              MPVOID);
    298298    free(inirec);
    299 # ifdef FORTIFY
     299#   ifdef FORTIFY
    300300    Fortify_LeaveScope();
    301 # endif
     301#    endif
    302302  }
    303303}
     
    342342
    343343  if (prfp) {
    344 # ifdef FORTIFY
    345   Fortify_EnterScope();
    346 # endif
     344#   ifdef FORTIFY
     345    Fortify_EnterScope();
     346#    endif
    347347    hab2 = WinInitialize(0);
    348348    if (hab2) {
     
    444444    xfree(prfp->pszSysName, pszSrcFile, __LINE__);
    445445    free(prfp);
    446 # ifdef FORTIFY
     446#   ifdef FORTIFY
    447447    Fortify_LeaveScope();
    448 # endif
     448#    endif
    449449  }
    450450}
  • trunk/dll/init.c

    r1045 r1063  
    538538
    539539  EndNote();
    540 /*# ifdef FORTIFY
    541   Fortify_LeaveScope();
    542 # endif*/
    543540  if (FM3ModHandle)
    544541    DosFreeModule(FM3ModHandle);
     
    607604      ret = pfnResVersion(&RVMajor, &RVMinor);
    608605  }
    609 /*# ifdef FORTIFY
    610   Fortify_EnterScope();
    611 # endif*/
    612606  if (RVMajor < VERMAJOR || (RVMajor == VERMAJOR && RVMinor < VERMINOR)) {
    613607    saymsg(MB_ENTER,
  • trunk/dll/killproc.c

    r1038 r1063  
    8686# ifdef FORTIFY
    8787  Fortify_EnterScope();
    88 # endif
     88#  endif
    8989  thab = WinInitialize(0);
    9090  thmq = WinCreateMsgQueue(thab, 0);
     
    138138  WinTerminate(thab);
    139139# ifdef FORTIFY
    140     Fortify_LeaveScope();
    141 # endif
     140  Fortify_LeaveScope();
     141#  endif
    142142}
    143143
     
    155155# ifdef FORTIFY
    156156  Fortify_EnterScope();
    157 # endif
     157#  endif
    158158  thab = WinInitialize(0);
    159159  thmq = WinCreateMsgQueue(thab, 0);
     
    207207  WinTerminate(thab);
    208208# ifdef FORTIFY
    209     Fortify_LeaveScope();
    210 # endif
     209  Fortify_LeaveScope();
     210#  endif
    211211}
    212212
     
    229229# ifdef FORTIFY
    230230  Fortify_EnterScope();
    231 # endif
     231#  endif
    232232  thab = WinInitialize(0);
    233233  thmq = WinCreateMsgQueue(thab, 0);
     
    309309  WinTerminate(thab);
    310310# ifdef FORTIFY
    311     Fortify_LeaveScope();
    312 # endif
     311  Fortify_LeaveScope();
     312#  endif
    313313}
    314314
  • trunk/dll/mainwnd.c

    r1061 r1063  
    210210    if (!PostMsg((HWND) 0, WM_QUIT, MPVOID, MPVOID))
    211211      WinSendMsg((HWND) 0, WM_QUIT, MPVOID, MPVOID);
    212 # ifdef FORTIFY
    213   Fortify_LeaveScope();
    214 # endif
     212#     ifdef FORTIFY
     213      Fortify_LeaveScope();
     214#      endif
    215215    break;
    216216  }
     
    58075807      PostMsg(hwnd, WM_COMMAND, MPFROMLONG(IDM_QUICKSETTINGS), MPVOID);
    58085808    }
    5809 # ifdef FORTIFY
    5810   Fortify_EnterScope();
    5811 # endif
     5809#   ifdef FORTIFY
     5810    Fortify_EnterScope();
     5811#    endif
    58125812    return 0;
    58135813  }
     
    63936393    if (!PostMsg((HWND) 0, WM_QUIT, MPVOID, MPVOID))
    63946394      WinSendMsg((HWND) 0, WM_QUIT, MPVOID, MPVOID);
    6395 # ifdef FORTIFY
    6396   free_commands();
    6397   free_associations();
    6398   free_udirs();
    6399   free_ldir();
    6400   free_archivers();
    6401   free_tools();
    6402   Fortify_LeaveScope();
    6403 # endif
     6395#     ifdef FORTIFY
     6396      free_commands();
     6397      free_associations();
     6398      free_udirs();
     6399      free_ldir();
     6400      free_archivers();
     6401      free_tools();
     6402      Fortify_LeaveScope();
     6403#      endif
    64046404    break;
    64056405  }
  • trunk/dll/makelist.c

    r1039 r1063  
    7676      FreeList(li->list);
    7777    free(li);
    78 # ifdef FORTIFY
    79   //Fortify_LeaveScope();
    80 # endif
    8178  }
    8279}
     
    9794#endif
    9895    free(list);
    99 # ifdef FORTIFY
    100   //Fortify_LeaveScope();
    101 # endif
    10296  }
    10397  DosPostEventSem(CompactSem);
     
    116110      // Use plain realloc for speed
    117111      // 06 Aug 07 SHL fixme to know why + 6
    118 # ifdef FORTIFY
    119   Fortify_EnterScope();
    120 # endif
     112#     ifdef FORTIFY
     113      Fortify_EnterScope();
     114#      endif
    121115      pflArray = realloc(*list, (*pnumalloced + 6) * sizeof(FILELIST *));
    122116      if (!pflArray) {
     
    170164    if (((*pnumfiles) + 3) > *pnumalloced) {
    171165      // Use plain realloc for speed
    172 # ifdef FORTIFY
    173   Fortify_EnterScope();
    174 # endif
     166#     ifdef FORTIFY
     167      Fortify_EnterScope();
     168#      endif
    175169      ppsz = realloc(*list, (*pnumalloced + 6) * sizeof(CHAR *));
    176170      if (!ppsz) {
     
    223217    // Use plain realloc for speed
    224218
    225 # ifdef FORTIFY
    226   Fortify_EnterScope();
    227 # endif
     219#   ifdef FORTIFY
     220    Fortify_EnterScope();
     221#    endif
    228222    test = realloc(list, sizeof(CHAR *) * (numfiles + 1));
    229223    if (!test)
     
    277271          list = NULL;
    278272        }
    279 # ifdef FORTIFY
    280   Fortify_LeaveScope();
    281 # endif
     273#       ifdef FORTIFY
     274        Fortify_LeaveScope();
     275#        endif
    282276        break;
    283277      }
  • trunk/dll/mle.c

    r1042 r1063  
    253253              GetPString(IDS_OUTOFMEMORY));
    254254    free(sel);
    255 # ifdef FORTIFY
    256   Fortify_LeaveScope();
    257 # endif
     255#   ifdef FORTIFY
     256    Fortify_LeaveScope();
     257#    endif
    258258    DosPostEventSem(CompactSem);
    259259    return FALSE;
     
    273273      Runtime_Error(pszSrcFile, __LINE__, "len < 1");
    274274      free(sel);
    275 # ifdef FORTIFY
    276   Fortify_LeaveScope();
    277 # endif
     275#     ifdef FORTIFY
     276      Fortify_LeaveScope();
     277#      endif
    278278      DosPostEventSem(CompactSem);
    279279      return FALSE;
     
    290290    DosFreeMem(temp);
    291291    free(sel);
    292 # ifdef FORTIFY
    293   Fortify_LeaveScope();
    294 # endif
     292#   ifdef FORTIFY
     293    Fortify_LeaveScope();
     294#    endif
    295295    MLEenable(h);
    296296    DosPostEventSem(CompactSem);
     
    314314      DosFreeMem(temp);
    315315      free(sel);
    316 # ifdef FORTIFY
    317   Fortify_LeaveScope();
    318 # endif
     316#     ifdef FORTIFY
     317      Fortify_LeaveScope();
     318#      endif
    319319      MLEenable(h);
    320320      DosPostEventSem(CompactSem);
     
    390390    DosFreeMem(temp);
    391391    free(sel);
    392 # ifdef FORTIFY
    393   Fortify_LeaveScope();
    394 # endif
     392#   ifdef FORTIFY
     393    Fortify_LeaveScope();
     394#    endif
    395395    DosPostEventSem(CompactSem);
    396396    MLEenable(h);
     
    428428# ifdef FORTIFY
    429429  Fortify_LeaveScope();
    430 # endif
     430#  endif
    431431  DosPostEventSem(CompactSem);
    432432  return TRUE;
     
    595595            ret = FALSE;
    596596          free(buffer);
    597 # ifdef FORTIFY
    598   Fortify_LeaveScope();
    599 # endif
     597#         ifdef FORTIFY
     598          Fortify_LeaveScope();
     599#          endif
    600600        }
    601601        DosFreeMem(hexbuff);
     
    773773# ifdef FORTIFY
    774774  Fortify_EnterScope();
    775 # endif
     775#  endif
    776776
    777777  bkg = (BKGLOAD *) arg;
     
    812812# ifdef FORTIFY
    813813  Fortify_LeaveScope();
    814 # endif
     814#  endif
    815815  _endthread();
    816816}
  • trunk/dll/newview.c

    r1039 r1063  
    934934
    935935  priority_normal();
     936# ifdef FORTIFY
     937  Fortify_EnterScope();
     938#  endif
    936939  hab2 = WinInitialize(0);
    937940  if (hab2) {
    938941    hmq2 = WinCreateMsgQueue(hab2, 0);
    939942    if (hmq2) {
    940 # ifdef FORTIFY
    941   Fortify_EnterScope();
    942 # endif
    943943      WinCancelShutdown(hmq2, TRUE);
    944944      IncrThreadUsage();
     
    10681068      }
    10691069      WinDestroyMsgQueue(hmq2);
    1070 # ifdef FORTIFY
    1071       Fortify_LeaveScope();
    1072 # endif
    10731070    }
    10741071    DecrThreadUsage();
    10751072    WinTerminate(hab2);
    10761073  }
     1074
     1075# ifdef FORTIFY
     1076  Fortify_LeaveScope();
     1077#  endif
    10771078  DosPostEventSem(CompactSem);
    10781079}
     
    10901091
    10911092  priority_normal();
     1093# ifdef FORTIFY
     1094  Fortify_EnterScope();
     1095#  endif
    10921096  hab2 = WinInitialize(0);
    10931097  if (hab2) {
     
    10961100      WinCancelShutdown(hmq2, TRUE);
    10971101      IncrThreadUsage();
    1098 # ifdef FORTIFY
    1099   Fortify_EnterScope();
    1100 # endif
    11011102      ad = WinQueryWindowPtr(hwnd, QWL_USER);
    11021103      if (ad) {
     
    11721173      WinDestroyMsgQueue(hmq2);
    11731174    }
    1174 # ifdef FORTIFY
    1175       Fortify_LeaveScope();
    1176 # endif
    11771175    DecrThreadUsage();
    11781176    WinTerminate(hab2);
    11791177  }
     1178# ifdef FORTIFY
     1179  Fortify_LeaveScope();
     1180#  endif
    11801181  DosPostEventSem(CompactSem);
    11811182}
     
    11921193
    11931194  priority_normal();
     1195# ifdef FORTIFY
     1196  Fortify_EnterScope();
     1197#  endif
    11941198  hab2 = WinInitialize(0);
    11951199  if (hab2) {
     
    11981202      WinCancelShutdown(hmq2, TRUE);
    11991203      IncrThreadUsage();
    1200 # ifdef FORTIFY
    1201   Fortify_EnterScope();
    1202 # endif
    12031204      ad = WinQueryWindowPtr(hwnd, QWL_USER);
    12041205      if (!ad)
     
    13521353    DecrThreadUsage();
    13531354    WinTerminate(hab2);
     1355  }
    13541356# ifdef FORTIFY
    1355     Fortify_LeaveScope();
    1356 # endif
    1357   }
     1357  Fortify_LeaveScope();
     1358#  endif
    13581359  DosPostEventSem(CompactSem);
    1359   if (ad && !ad->stopflag) {
     1360  if (ad && !ad->stopflag) { //Fixme can't post message withou HAB GKY 7-10-08
    13601361    PostMsg(hwnd, UM_CONTAINER_FILLED, MPFROMLONG(firstline),
    13611362            MPFROMLONG(cursored));
     
    13761377  BOOL error = TRUE;
    13771378
     1379# ifdef FORTIFY
     1380  Fortify_EnterScope();
     1381#  endif
    13781382  hab2 = WinInitialize(0);
    13791383  if (hab2) {
     
    13821386      WinCancelShutdown(hmq2, TRUE);
    13831387      IncrThreadUsage();
    1384 # ifdef FORTIFY
    1385   Fortify_EnterScope();
    1386 # endif
    13871388      ad = WinQueryWindowPtr(hwnd, QWL_USER);
    13881389      if (ad) {
     
    14771478    DecrThreadUsage();
    14781479    WinTerminate(hab2);
     1480  }
    14791481# ifdef FORTIFY
    1480     Fortify_LeaveScope();
    1481 # endif
    1482   }
    1483   if (error)
     1482  Fortify_LeaveScope();
     1483#  endif
     1484  if (error) //fixme
    14841485    PostMsg(hwnd, UM_CONTAINER_FILLED, MPVOID, MPVOID);
    14851486  DosPostEventSem(CompactSem);
  • trunk/dll/notify.c

    r1047 r1063  
    434434# ifdef FORTIFY
    435435  Fortify_EnterScope();
    436 # endif
     436#  endif
    437437  if (hab) {
    438438    HMQ hmq = WinCreateMsgQueue(hab, 0);
     
    447447  }
    448448# ifdef FORTIFY
    449     Fortify_LeaveScope();
    450 # endif
     449  Fortify_LeaveScope();
     450#  endif
    451451}
    452452
  • trunk/dll/objcnr.c

    r1039 r1063  
    217217# ifdef FORTIFY
    218218  Fortify_EnterScope();
    219 # endif
     219#  endif
    220220  if (!dirsize) {
    221221    Runtime_Error(pszSrcFile, __LINE__, "no data");
     
    242242# ifdef FORTIFY
    243243  Fortify_LeaveScope();
    244 # endif
     244#  endif
    245245}
    246246
     
    275275    {
    276276      DIRSIZE *dirsize;
    277 # ifdef FORTIFY
    278   Fortify_EnterScope();
    279 # endif
     277#     ifdef FORTIFY
     278      Fortify_EnterScope();
     279#      endif
    280280      dirsize = xmalloc(sizeof(DIRSIZE), pszSrcFile, __LINE__);
    281281      if (!dirsize) {
     
    291291                      GetPString(IDS_COULDNTSTARTTHREADTEXT));
    292292        free(dirsize);
    293 # ifdef FORTIFY
    294   Fortify_LeaveScope();
    295 # endif
     293#       ifdef FORTIFY
     294        Fortify_LeaveScope();
     295#        endif
    296296        WinDismissDlg(hwnd, 0);
    297297        break;
  • trunk/dll/objwin.c

    r1062 r1063  
    7777                   IDS_WINCREATEWINDOW);
    7878      else {
    79 #ifdef FORTIFY
    80         Fortify_EnterScope();
    81 #endif
     79#       ifdef FORTIFY
     80        Fortify_EnterScope();
     81#        endif
    8282        WinSetWindowPtr(ObjectHwnd, QWL_USER, args);
    8383        /* initially populate container */
     
    8888          WinDispatchMsg(hab2, &qmsg2);
    8989        WinDestroyWindow(ObjectHwnd);
    90 #ifdef FORTIFY
     90#           ifdef FORTIFY
    9191        {
    9292          HWND hwndCnr = ((DIRCNRDATA *)args)->hwndCnr;
     
    9898          Fortify_LeaveScope();
    9999        }
    100 #endif
     100#            endif
    101101      }
    102102      WinDestroyMsgQueue(hmq2);
  • trunk/dll/printer.c

    r1038 r1063  
    115115# ifdef FORTIFY
    116116  Fortify_EnterScope();
    117 # endif
     117#  endif
    118118  priority_normal();
    119119  hab2 = WinInitialize(0);
     
    324324  if (li)
    325325    FreeListInfo(li);
    326 # ifdef FORTIFY
     326#   ifdef FORTIFY
    327327    Fortify_LeaveScope();
    328 # endif
     328#    endif
    329329}
    330330
  • trunk/dll/seeall.c

    r1039 r1063  
    386386        {
    387387          LISTINFO *li;
    388 # ifdef FORTIFY
    389   Fortify_EnterScope();
    390 # endif
     388#         ifdef FORTIFY
     389          Fortify_EnterScope();
     390#          endif
    391391          li = xmallocz(sizeof(LISTINFO), pszSrcFile, __LINE__);
    392392          if (li) {
     
    11301130
    11311131  if (ad) {
     1132#   ifdef FORTIFY
     1133    Fortify_EnterScope();
     1134#    endif
    11321135    hab2 = WinInitialize(0);
    11331136    if (hab2) {
    1134 # ifdef FORTIFY
    1135   Fortify_EnterScope();
    1136 # endif
    11371137      hmq2 = WinCreateMsgQueue(hab2, 256);
    11381138      if (hmq2) {
     
    11671167      else
    11681168        WinTerminate(hab2);
    1169 # ifdef FORTIFY
     1169    }
     1170#   ifdef FORTIFY
    11701171    Fortify_LeaveScope();
    1171 # endif
    1172     }
     1172#    endif
    11731173  }
    11741174}
     
    16471647# ifdef FORTIFY
    16481648  Fortify_EnterScope();
    1649 # endif
     1649#  endif
    16501650  if (!DosRequestMutexSem(ad->hmtxScan, SEM_INDEFINITE_WAIT)) {
    16511651    priority_normal();
     
    17601760  }
    17611761# ifdef FORTIFY
    1762     Fortify_LeaveScope();
    1763 # endif
     1762  Fortify_LeaveScope();
     1763#  endif
    17641764}
    17651765
     
    20572057# ifdef FORTIFY
    20582058  Fortify_EnterScope();
    2059 # endif
     2059#  endif
    20602060  if (!DosRequestMutexSem(ad->hmtxScan, SEM_INDEFINITE_WAIT)) {
    20612061    priority_normal();
     
    21182118  }
    21192119# ifdef FORTIFY
    2120     Fortify_LeaveScope();
    2121 # endif
     2120  Fortify_LeaveScope();
     2121#  endif
    21222122}
    21232123
     
    24752475    // fprintf(stderr,"Seeall: WM_CREATE\n");
    24762476    WinSetWindowPtr(hwnd, QWL_USER, NULL);
    2477 # ifdef FORTIFY
    2478   Fortify_EnterScope();
    2479 # endif
     2477#   ifdef FORTIFY
     2478    Fortify_EnterScope();
     2479#    endif
    24802480    pAD = xmallocz(sizeof(ALLDATA), pszSrcFile, __LINE__);
    24812481    if (pAD) {
     
    42934293      FreeAllFilesList(hwnd);
    42944294      free(pAD);
    4295 # ifdef FORTIFY
    4296       Fortify_LeaveScope();
    4297 # endif
    4298     }
     4295    }
     4296#   ifdef FORTIFY
     4297    Fortify_LeaveScope();
     4298#    endif
    42994299    break;
    43004300  }
  • trunk/dll/treecnr.c

    r1047 r1063  
    785785      else {
    786786        WORKER *wk;
    787 # ifdef FORTIFY
    788   Fortify_EnterScope();
    789 # endif
     787#       ifdef FORTIFY
     788        Fortify_EnterScope();
     789#        endif
    790790        wk = xmallocz(sizeof(WORKER), pszSrcFile, __LINE__);
    791791        if (!wk)
     
    803803                          GetPString(IDS_COULDNTSTARTTHREADTEXT));
    804804            free(wk);
    805 # ifdef FORTIFY
    806   Fortify_LeaveScope();
    807 # endif
    808805            FreeListInfo((LISTINFO *) mp1);
    809806          }
    810807        }
     808#       ifdef FORTIFY
     809        Fortify_LeaveScope();
     810#        endif
    811811      }
    812812    }
     
    821821      else {
    822822        WORKER *wk;
    823 # ifdef FORTIFY
    824   Fortify_EnterScope();
    825 # endif
     823#       ifdef FORTIFY
     824        Fortify_EnterScope();
     825#        endif
    826826        wk = xmallocz(sizeof(WORKER), pszSrcFile, __LINE__);
    827827        if (!wk)
     
    839839                          GetPString(IDS_COULDNTSTARTTHREADTEXT));
    840840            free(wk);
    841 # ifdef FORTIFY
    842   Fortify_LeaveScope();
    843 # endif
    844841            FreeListInfo((LISTINFO *) mp1);
    845842          }
    846843        }
     844#      ifdef FORTIFY
     845       Fortify_LeaveScope();
     846#       endif
    847847      }
    848848    }
     
    860860                 UM_CLOSE, MPFROMLONG(dcd->dontclose != FALSE), MPVOID);
    861861      free(dcd);
    862 # ifdef FORTIFY
    863   Fortify_LeaveScope();
    864 # endif
     862#     ifdef FORTIFY
     863      Fortify_LeaveScope();
     864#      endif
    865865      WinSetWindowPtr(dcd->hwndCnr, QWL_USER, NULL);
    866866    }
     
    27612761          LISTINFO *li;
    27622762          ULONG action = UM_ACTION;
    2763 # ifdef FORTIFY
    2764   Fortify_EnterScope();
    2765 # endif
     2763#         ifdef FORTIFY
     2764          Fortify_EnterScope();
     2765#         endif
    27662766          li = xmallocz(sizeof(LISTINFO), pszSrcFile, __LINE__);
    27672767          if (li) {
     
    27712771            if (!li->list || !li->list[0]) {
    27722772              free(li);
    2773 # ifdef FORTIFY
    2774   Fortify_LeaveScope();
    2775 # endif
     2773#             ifdef FORTIFY
     2774              Fortify_LeaveScope();
     2775#              endif
    27762776              break;
    27772777            }
     
    29962996  }
    29972997  if (hwndFrame && hwndClient) {
    2998 # ifdef FORTIFY
    2999   Fortify_EnterScope();
    3000 # endif
     2998#   ifdef FORTIFY
     2999    Fortify_EnterScope();
     3000#    endif
    30013001    dcd = xmallocz(sizeof(DIRCNRDATA), pszSrcFile, __LINE__);
    30023002    if (!dcd) {
     
    30833083        PostMsg(hwndClient, WM_CLOSE, MPVOID, MPVOID);
    30843084        free(dcd);
    3085 # ifdef FORTIFY
    3086   Fortify_LeaveScope();
    3087 # endif
     3085#       ifdef FORTIFY
     3086        Fortify_LeaveScope();
     3087#        endif
    30883088        hwndFrame = (HWND) 0;
    30893089      }
  • trunk/dll/undel.c

    r1039 r1063  
    6565# ifdef FORTIFY
    6666  Fortify_EnterScope();
    67 # endif
     67#  endif
    6868  thab = WinInitialize(0);
    6969  thmq = WinCreateMsgQueue(thab, 0);
     
    163163  }
    164164# ifdef FORTIFY
    165     Fortify_LeaveScope();
    166 # endif
     165  Fortify_LeaveScope();
     166#  endif
    167167}
    168168
  • trunk/dll/viewer.c

    r1047 r1063  
    101101# ifdef FORTIFY
    102102  Fortify_EnterScope();
    103 # endif
     103#  endif
    104104  vw = xmallocz(sizeof(XMLEWNDPTR), pszSrcFile, __LINE__);
    105105  if (!vw)
     
    12661266      }
    12671267    }
    1268 # ifdef FORTIFY
    1269   Fortify_LeaveScope();
    1270 # endif
     1268#   ifdef FORTIFY
     1269    Fortify_LeaveScope();
     1270#    endif
    12711271    break;
    12721272  }
  • trunk/dll/viewinf.c

    r1047 r1063  
    5959# ifdef FORTIFY
    6060  Fortify_EnterScope();
    61 # endif
     61#  endif
    6262  hwnd = dummy->hwnd;
    6363  hab2 = WinInitialize(0);
     
    195195# ifdef FORTIFY
    196196  Fortify_LeaveScope();
    197 # endif
     197#  endif
    198198}
    199199
  • trunk/dll/worker.c

    r1047 r1063  
    8080    case IDM_EXTRACT:
    8181      {
    82 # ifdef FORTIFY
    83   Fortify_EnterScope();
    84 # endif
     82#     ifdef FORTIFY
     83      Fortify_EnterScope();
     84#      endif
    8585        li = xmallocz(sizeof(LISTINFO), pszSrcFile, __LINE__);
    8686        if (li) {
     
    105105              FreeListInfo(wk->li);
    106106              free(wk);
    107 # ifdef FORTIFY
    108   Fortify_LeaveScope();
    109 # endif
     107#             ifdef FORTIFY
     108              Fortify_LeaveScope();
     109#              endif
    110110            }
    111111          }
     
    118118  }
    119119  FreeUndo();
     120# ifdef FORTIFY
     121  Fortify_LeaveScope();
     122#  endif
    120123}
    121124
     
    135138
    136139
    137 # ifdef FORTIFY
    138   Fortify_EnterScope();
    139 # endif
    140140  if (wk) {
     141#   ifdef FORTIFY
     142    Fortify_EnterScope();
     143#    endif
    141144    if (wk->li && wk->li->list && wk->li->list[0]) {
    142145      hab2 = WinInitialize(0);
     
    978981      FreeListInfo(wk->li);
    979982    free(wk);
    980 # ifdef FORTIFY
    981   Fortify_LeaveScope();
    982 # endif
     983#   ifdef FORTIFY
     984    Fortify_LeaveScope();
     985#    endif
    983986    DosPostEventSem(CompactSem);
    984987  }
     
    995998
    996999
    997 # ifdef FORTIFY
    998   Fortify_EnterScope();
    999 # endif
    10001000  if (wk) {
     1001#   ifdef FORTIFY
     1002    Fortify_EnterScope();
     1003#    endif
    10011004    if (wk->li && wk->li->list && wk->li->list[0]) {
    10021005      hab2 = WinInitialize(0);
     
    16431646      FreeListInfo(wk->li);
    16441647    free(wk);
    1645 # ifdef FORTIFY
    1646   Fortify_LeaveScope();
    1647 # endif
     1648#   ifdef FORTIFY
     1649    Fortify_LeaveScope();
     1650#    endif
    16481651    DosPostEventSem(CompactSem);
    16491652  }
  • trunk/dll/wrappers.c

    r1037 r1063  
    333333{
    334334  if (pv && pv != NullStr) {
    335 # ifdef FORTIFY
     335#   ifdef FORTIFY
    336336    Fortify_free(pv, pszSrcFile, uiLineNumber);
    337 # else
     337#   else
    338338    free(pv);
    339 # endif
     339#    endif
    340340
    341341  }
     
    350350# else
    351351  PVOID pv = malloc(cBytes);
    352 # endif
     352#  endif
    353353
    354354  if (!pv)
     
    375375{
    376376  if (pvIn != NullStr) {
    377 # ifdef FORTIFY
    378   PVOID pv = Fortify_realloc(pvIn, cBytes, pszSrcFile, uiLineNumber);
    379 # else
    380   PVOID pv = realloc(pvIn, cBytes);
    381 # endif
     377#   ifdef FORTIFY
     378    PVOID pv = Fortify_realloc(pvIn, cBytes, pszSrcFile, uiLineNumber);
     379#   else
     380    PVOID pv = realloc(pvIn, cBytes);
     381#    endif
    382382
    383383    if (!pv && cBytes)
     
    398398# else
    399399  PSZ psz = strdup(pszIn);
    400 # endif
     400#  endif
    401401
    402402  if (!psz)
Note: See TracChangeset for help on using the changeset viewer.