Ignore:
Timestamp:
Nov 30, 2001, 6:49:22 PM (24 years ago)
Author:
phaller
Message:

Fixed out-of-scope FIXME,TRACE,WARN macros

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/comctl32/comctl32undoc.c

    r6810 r7502  
    4141//#undef TRACE
    4242#ifdef DEBUG
     43// PH 2001-11-30
     44// this macro definition causes the control leave the scope of a
     45// non-curly-braced preceeding if statement. Therefore,
     46//   if (p!=NULL)
     47//      TRACE("p->a=%d", p->a)
     48// crashes.
     49//
     50// !!! ENSURE TRACES AND FIXMES WITH PRECEEDING IF STATEMENT
     51// !!! ARE PUT INTO CURLY BRACES
    4352#define FIXME WriteLog("FIXME COMCTL32: %s", __FUNCTION__); WriteLog
    4453#else
     
    13491358    for (i = 0; i < hdsa->nItemSize; i += 4) {
    13501359        p = *(DWORD**)((char *) pSrc + i);
    1351         if (IsBadStringPtrA ((char*)p, 256))
    1352             TRACE("-- %d=%p\n", i, (DWORD*)p);
    1353         else
    1354             TRACE("-- %d=%p [%s]\n", i, p, debugstr_a((char*)p));
     1360        if (IsBadStringPtrA ((char*)p, 256))
     1361        {
     1362          TRACE("-- %d=%p\n", i, (DWORD*)p);
     1363        }
     1364        else
     1365        {
     1366          TRACE("-- %d=%p [%s]\n", i, p, debugstr_a((char*)p));
     1367        }
    13551368    }
    13561369   
Note: See TracChangeset for help on using the changeset viewer.