Changeset 7501 for trunk/src


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

Fixed out-of-scope TRACEs and FIXMEs

Location:
trunk/src/oleaut32
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/oleaut32/olepicture.c

    r7484 r7501  
    6060#undef TRACE
    6161#ifdef DEBUG
     62// PH 2001-11-30
     63// this macro definition causes the control leave the scope of a
     64// non-curly-braced preceeding if statement. Therefore,
     65//   if (p!=NULL)
     66//      TRACE("p->a=%d", p->a)
     67// crashes.
     68//
     69// !!! ENSURE TRACES AND FIXMES WITH PRECEEDING IF STATEMENT
     70// !!! ARE PUT INTO CURLY BRACES
    6271#define TRACE WriteLog("%s", __FUNCTION__); WriteLog
    6372#define FIXME WriteLog("FIXME %s", __FUNCTION__); WriteLog
     
    498507        This, hdc, x, y, cx, cy, xSrc, ySrc, cxSrc, cySrc, prcWBounds);
    499508  if(prcWBounds)
     509  {
    500510    TRACE("prcWBounds (%d,%d) - (%d,%d)\n", prcWBounds->left, prcWBounds->top,
    501           prcWBounds->right, prcWBounds->bottom);
     511          prcWBounds->right, prcWBounds->bottom);
     512  }
    502513
    503514  /*
     
    840851  }
    841852  if (xread != header[1])
     853  {
    842854    FIXME("Could only read %ld of %ld bytes?\n",xread,header[1]);
     855  }
    843856
    844857  magic = xbuf[0] + (xbuf[1]<<8);
     
    12721285  hr = IPicture_QueryInterface(newpic,riid,ppvObj);
    12731286  if (hr)
    1274       FIXME("Failed to get interface %s from IPicture.\n",debugstr_guid(riid));
     1287  {
     1288    FIXME("Failed to get interface %s from IPicture.\n",debugstr_guid(riid));
     1289  }
    12751290  IPicture_Release(newpic);
    12761291  return hr;
  • trunk/src/oleaut32/typelib.c

    r6952 r7501  
    7171#undef TRACE
    7272#ifdef DEBUG
     73// PH 2001-11-30
     74// this macro definition causes the control leave the scope of a
     75// non-curly-braced preceeding if statement. Therefore,
     76//   if (p!=NULL)
     77//      TRACE("p->a=%d", p->a)
     78// crashes.
     79//
     80// !!! ENSURE TRACES AND FIXMES WITH PRECEEDING IF STATEMENT
     81// !!! ARE PUT INTO CURLY BRACES
    7382#define TRACE WriteLog("OLEAUT32: %s", __FUNCTION__); WriteLog
    7483#define FIXME WriteLog("OLEAUT32: FIXME %s", __FUNCTION__); WriteLog
     
    23652374
    23662375        name += SLTG_ReadStringA(name, &refname);
    2367         if(sscanf(refname, "*\\R%x*#%x", &lib_offs, &type_num) != 2)
    2368             FIXME("Can't sscanf ref\n");
     2376        if(sscanf(refname, "*\\R%x*#%x", &lib_offs, &type_num) != 2)
     2377        {
     2378          FIXME("Can't sscanf ref\n");
     2379        }
    23692380        if(lib_offs != 0xffff) {
    23702381            TLBImpLib **import = &pTI->pTypeLib->pImpLibs;
     
    23922403                }
    23932404                len = strlen(fname);
    2394                 if(fname[len-1] != '#')
    2395                     FIXME("fname = %s\n", fname);
     2405                if(fname[len-1] != '#')
     2406                {
     2407                  FIXME("fname = %s\n", fname);
     2408                }
    23962409                fname[len-1] = '\0';
    23972410                (*import)->name = TLB_MultiByteToBSTR(fname);
     
    24082421    }
    24092422    if((BYTE)*name != SLTG_REF_MAGIC)
     2423    {
    24102424      FIXME("End of ref block magic = %x\n", *name);
     2425    }
    24112426    dump_TLBRefType(pTI->reflist);
    24122427}
     
    24352450        if(info->next == 0xffff)
    24362451            break;
    2437         if(OneOnly)
    2438             FIXME("Interface inheriting more than one interface\n");
     2452        if(OneOnly)
     2453        {
     2454          FIXME("Interface inheriting more than one interface\n");
     2455        }
    24392456        info = (SLTG_ImplInfo*)(pBlk + info->next);
    24402457    }
     
    28902907     
    28912908      if((pTIHeader->typeflags1 & 7) != 2)
    2892         FIXME("typeflags1 = %02x\n", pTIHeader->typeflags1);
     2909      {
     2910        FIXME("typeflags1 = %02x\n", pTIHeader->typeflags1);
     2911      }
    28932912      if(pTIHeader->typeflags3 != 2)
    2894         FIXME("typeflags3 = %02x\n", pTIHeader->typeflags3);
    2895 
     2913      {
     2914        FIXME("typeflags3 = %02x\n", pTIHeader->typeflags3);
     2915      }
    28962916      TRACE("TypeInfo %s of kind %s guid %s typeflags %04x\n",
    28972917            debugstr_w((*ppTypeInfoImpl)->Name),
     
    40234043                }
    40244044            }
    4025             if (pFDesc->funcdesc.cParamsOpt)
     4045            if (pFDesc->funcdesc.cParamsOpt)
     4046            {
    40264047                FIXME("Does not support optional parameters (%d)\n",
    40274048                        pFDesc->funcdesc.cParamsOpt
    4028                 );
     4049                     );
     4050            }
    40294051
    40304052            res = _invoke((*(DWORD***)pIUnk)[pFDesc->funcdesc.oVft/4],
     
    40774099               pVarResult,pExcepInfo,pArgErr
    40784100           );
    4079            if (hr)
    4080                FIXME("IDispatch::Invoke failed with %08lx. (Could be not a real error?)\n",hr);
     4101           if (hr)
     4102           {
     4103            FIXME("IDispatch::Invoke failed with %08lx. (Could be not a real error?)\n",hr);
     4104           }
    40814105           IDispatch_Release(disp);
    40824106           return hr;
     
    42164240                break;
    42174241        }
    4218         if(!pRefType)
    4219           FIXME("Can't find pRefType for ref %lx\n", hRefType);
     4242        if(!pRefType)
     4243        {
     4244          FIXME("Can't find pRefType for ref %lx\n", hRefType);
     4245        }
    42204246        if(pRefType && hRefType != -1) {
    42214247            ITypeLib *pTLib;
Note: See TracChangeset for help on using the changeset viewer.