Ignore:
Timestamp:
Feb 15, 2002, 6:18:52 PM (24 years ago)
Author:
sandervl
Message:

Wine 20020215 resync

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/ole32/compositemoniker.c

    r7502 r7926  
    1717#include "ole2.h"
    1818
    19 #ifdef __WIN32OS2__
    20 #undef FIXME
    21 #undef TRACE
    22 #ifdef DEBUG
    23 // PH 2001-11-30
    24 // this macro definition causes the control leave the scope of a
    25 // non-curly-braced preceeding if statement. Therefore,
    26 //   if (p!=NULL)
    27 //      TRACE("p->a=%d", p->a)
    28 // crashes.
    29 //
    30 // !!! ENSURE TRACES AND FIXMES WITH PRECEEDING IF STATEMENT
    31 // !!! ARE PUT INTO CURLY BRACES
    32 #define TRACE WriteLog("OLE32: %s", __FUNCTION__); WriteLog
    33 #define FIXME WriteLog("FIXME OLE32: %s", __FUNCTION__); WriteLog
    34 #else
    35 #define TRACE 1 ? (void)0 : (void)((int (*)(char *, ...)) NULL)
    36 #define FIXME 1 ? (void)0 : (void)((int (*)(char *, ...)) NULL)
    37 #endif
    38 #endif
    39 
    4019DEFAULT_DEBUG_CHANNEL(ole);
    4120
     
    4726    ICOM_VTABLE(IMoniker)*  lpvtbl1;  /* VTable relative to the IMoniker interface.*/
    4827
    49     /* The ROT (RunningObjectTable implementation) uses the IROTData interface to test whether
    50      * two monikers are equal. That's whay IROTData interface is implemented by monikers.
     28    /* The ROT (RunningObjectTable implementation) uses the IROTData
     29     * interface to test whether two monikers are equal. That's why IROTData
     30     * interface is implemented by monikers.
    5131     */
    5232    ICOM_VTABLE(IROTData)*  lpvtbl2;  /* VTable relative to the IROTData interface.*/
     
    362342            return E_FAIL;
    363343
    364         else{
    365             FIXME("()");
     344        else
     345        {
     346            FIXME("()\n");
     347            /* FIXME: To whoever wrote this code: It's either return or break. it cannot be both! */
    366348            break;
    367349            return E_NOTIMPL;
     
    394376    TRACE("(%p,%p,%d)\n",iface,pStm,fClearDirty);
    395377
    396     /* this function call OleSaveToStream function for each moniker within this object */
    397 
    398     /* when I tested this function in windows system ! I usually found this constant in the begining of */
    399     /* the stream  I dont known why (there's no indication in specification) ! */
     378    /* This function calls OleSaveToStream function for each moniker within
     379     * this object.
     380     * When I tested this function in windows, I usually found this constant
     381     * at the beginning of the stream. I don't known why (there's no
     382     * indication in the specification) !
     383     */
    400384    res=IStream_Write(pStm,&constant,sizeof(constant),NULL);
    401385
     
    429413    ULARGE_INTEGER ptmpSize;
    430414
    431     /* the sizeMax of this object is calculated by calling  GetSizeMax on each moniker within this object then */
    432     /* suming all returned sizemax */
     415    /* The sizeMax of this object is calculated by calling  GetSizeMax on
     416     * each moniker within this object then summing all returned values
     417     */
    433418
    434419    TRACE("(%p,%p)\n",iface,pcbSize);
     
    469454    TRACE("(%p,%p,%p)\n",This,pmkFirst,pmkRest);
    470455
    471     /* Initialize the virtual fgunction table. */
     456    /* Initialize the virtual function table. */
    472457    This->lpvtbl1      = &VT_CompositeMonikerImpl;
    473458    This->lpvtbl2      = &VT_ROTDataImpl;
     
    483468    IMoniker_IsSystemMoniker(pmkFirst,&mkSys);
    484469
    485     /* put the first moniker contents in the begining of the table */
     470    /* put the first moniker contents in the beginning of the table */
    486471    if (mkSys!=MKSYS_GENERICCOMPOSITE){
    487472
     
    557542    else{
    558543
    559         /* add a composite moniker to the moniker table (do the same thing for each moniker within the */
    560         /* composite moniker as a simple moniker (see above how to add a simple moniker case) ) */
     544        /* add a composite moniker to the moniker table (do the same thing
     545         * for each moniker within the composite moniker as a simple moniker
     546         * (see above for how to add a simple moniker case) )
     547         */
    561548        IMoniker_Enum(pmkRest,TRUE,&enumMoniker);
    562549
     
    16641651
    16651652/******************************************************************************
    1666  *        CreateGenericComposite        [OLE.55]
     1653 *        CreateGenericComposite        [OLE32.56]
    16671654 ******************************************************************************/
    16681655HRESULT WINAPI CreateGenericComposite(LPMONIKER pmkFirst, LPMONIKER pmkRest, LPMONIKER* ppmkComposite)
     
    17131700
    17141701/******************************************************************************
    1715  *        MonikerCommonPrefixWith       [OLE.55]
     1702 *        MonikerCommonPrefixWith       [OLE32.82]
    17161703 ******************************************************************************/
    17171704HRESULT WINAPI MonikerCommonPrefixWith(IMoniker* pmkThis,IMoniker* pmkOther,IMoniker** ppmkCommon)
Note: See TracChangeset for help on using the changeset viewer.