Changeset 7926 for trunk/src/ole32/compositemoniker.c
- Timestamp:
- Feb 15, 2002, 6:18:52 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/ole32/compositemoniker.c
r7502 r7926 17 17 #include "ole2.h" 18 18 19 #ifdef __WIN32OS2__20 #undef FIXME21 #undef TRACE22 #ifdef DEBUG23 // PH 2001-11-3024 // this macro definition causes the control leave the scope of a25 // 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 STATEMENT31 // !!! ARE PUT INTO CURLY BRACES32 #define TRACE WriteLog("OLE32: %s", __FUNCTION__); WriteLog33 #define FIXME WriteLog("FIXME OLE32: %s", __FUNCTION__); WriteLog34 #else35 #define TRACE 1 ? (void)0 : (void)((int (*)(char *, ...)) NULL)36 #define FIXME 1 ? (void)0 : (void)((int (*)(char *, ...)) NULL)37 #endif38 #endif39 40 19 DEFAULT_DEBUG_CHANNEL(ole); 41 20 … … 47 26 ICOM_VTABLE(IMoniker)* lpvtbl1; /* VTable relative to the IMoniker interface.*/ 48 27 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. 51 31 */ 52 32 ICOM_VTABLE(IROTData)* lpvtbl2; /* VTable relative to the IROTData interface.*/ … … 362 342 return E_FAIL; 363 343 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! */ 366 348 break; 367 349 return E_NOTIMPL; … … 394 376 TRACE("(%p,%p,%d)\n",iface,pStm,fClearDirty); 395 377 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 */ 400 384 res=IStream_Write(pStm,&constant,sizeof(constant),NULL); 401 385 … … 429 413 ULARGE_INTEGER ptmpSize; 430 414 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 */ 433 418 434 419 TRACE("(%p,%p)\n",iface,pcbSize); … … 469 454 TRACE("(%p,%p,%p)\n",This,pmkFirst,pmkRest); 470 455 471 /* Initialize the virtual f gunction table. */456 /* Initialize the virtual function table. */ 472 457 This->lpvtbl1 = &VT_CompositeMonikerImpl; 473 458 This->lpvtbl2 = &VT_ROTDataImpl; … … 483 468 IMoniker_IsSystemMoniker(pmkFirst,&mkSys); 484 469 485 /* put the first moniker contents in the begin ing of the table */470 /* put the first moniker contents in the beginning of the table */ 486 471 if (mkSys!=MKSYS_GENERICCOMPOSITE){ 487 472 … … 557 542 else{ 558 543 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 */ 561 548 IMoniker_Enum(pmkRest,TRUE,&enumMoniker); 562 549 … … 1664 1651 1665 1652 /****************************************************************************** 1666 * CreateGenericComposite [OLE .55]1653 * CreateGenericComposite [OLE32.56] 1667 1654 ******************************************************************************/ 1668 1655 HRESULT WINAPI CreateGenericComposite(LPMONIKER pmkFirst, LPMONIKER pmkRest, LPMONIKER* ppmkComposite) … … 1713 1700 1714 1701 /****************************************************************************** 1715 * MonikerCommonPrefixWith [OLE .55]1702 * MonikerCommonPrefixWith [OLE32.82] 1716 1703 ******************************************************************************/ 1717 1704 HRESULT WINAPI MonikerCommonPrefixWith(IMoniker* pmkThis,IMoniker* pmkOther,IMoniker** ppmkCommon)
Note:
See TracChangeset
for help on using the changeset viewer.