Changeset 1063 for trunk/dll/newview.c


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

Fortify ifdef reformat

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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);
Note: See TracChangeset for help on using the changeset viewer.