diff --git a/dlls/ole32/antimoniker.c b/dlls/ole32/antimoniker.c index 829fc4f0080..e6f811bd165 100644 --- a/dlls/ole32/antimoniker.c +++ b/dlls/ole32/antimoniker.c @@ -215,7 +215,7 @@ AntiMonikerImpl_GetSizeMax(IMoniker* iface, ULARGE_INTEGER* pcbSize) if (!pcbSize) return E_POINTER; - /* for more details see AntiMonikerImpl_Save coments */ + /* for more details see AntiMonikerImpl_Save comments */ /* * Normally the sizemax must be sizeof DWORD, but @@ -600,7 +600,7 @@ static HRESULT AntiMonikerImpl_Construct(AntiMonikerImpl* This) TRACE("(%p)\n",This); - /* Initialize the virtual fgunction table. */ + /* Initialize the virtual function table. */ This->lpvtbl1 = &VT_AntiMonikerImpl; This->lpvtbl2 = &VT_ROTDataImpl; This->ref = 0; diff --git a/dlls/ole32/bindctx.c b/dlls/ole32/bindctx.c index 5c348cbbeb2..11c9a7808f0 100644 --- a/dlls/ole32/bindctx.c +++ b/dlls/ole32/bindctx.c @@ -46,7 +46,7 @@ typedef struct BindCtxObject{ } BindCtxObject; -/* BindCtx data strucrture */ +/* BindCtx data structure */ typedef struct BindCtxImpl{ const IBindCtxVtbl *lpVtbl; /* VTable relative to the IBindCtx interface.*/ diff --git a/dlls/ole32/compobj.c b/dlls/ole32/compobj.c index 25a16296f2b..a5dfcf21654 100644 --- a/dlls/ole32/compobj.c +++ b/dlls/ole32/compobj.c @@ -1690,8 +1690,8 @@ HRESULT WINAPI CoGetPSClsid(REFIID riid, CLSID *pclsid) } RegCloseKey(hkey); - /* We have the CLSid we want back from the registry as a string, so - lets convert it into a CLSID structure */ + /* We have the CLSID we want back from the registry as a string, so + let's convert it into a CLSID structure */ if (CLSIDFromString(value, pclsid) != NOERROR) return REGDB_E_IIDNOTREG; diff --git a/dlls/ole32/compositemoniker.c b/dlls/ole32/compositemoniker.c index 825a2ab2aad..7390e17403c 100644 --- a/dlls/ole32/compositemoniker.c +++ b/dlls/ole32/compositemoniker.c @@ -54,7 +54,7 @@ typedef struct CompositeMonikerImpl{ LONG ref; /* reference counter for this object */ - IMoniker** tabMoniker; /* dynamaic table containing all components (monikers) of this composite moniker */ + IMoniker** tabMoniker; /* dynamic table containing all components (monikers) of this composite moniker */ ULONG tabSize; /* size of tabMoniker */ @@ -903,7 +903,7 @@ CompositeMonikerImpl_CommonPrefixWith(IMoniker* iface, IMoniker* pmkOther, IEnumMoniker_Next(enumMoniker1,1,&tempMk1,NULL); - /* if we have more than one commun moniker the result will be a composite moniker */ + /* if we have more than one common moniker the result will be a composite moniker */ if (nbCommonMk>1){ /* initialize the common prefix moniker with the composite of two first moniker (from the left)*/ @@ -928,7 +928,7 @@ CompositeMonikerImpl_CommonPrefixWith(IMoniker* iface, IMoniker* pmkOther, return S_OK; } else{ - /* if we have only one commun moniker the result will be a simple moniker which is the most-left one*/ + /* if we have only one common moniker the result will be a simple moniker which is the most-left one*/ *ppmkPrefix=tempMk1; return S_OK; diff --git a/dlls/ole32/datacache.c b/dlls/ole32/datacache.c index 89035065485..53073590d9b 100644 --- a/dlls/ole32/datacache.c +++ b/dlls/ole32/datacache.c @@ -66,7 +66,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(ole); * PresentationDataHeader * * This structure represents the header of the \002OlePresXXX stream in - * the OLE object strorage. + * the OLE object storage. */ typedef struct PresentationDataHeader { @@ -2252,7 +2252,7 @@ static const IOleCacheControlVtbl DataCache_IOleCacheControl_VTable = * * NOTES * The following interfaces are supported by the returned data cache object: - * IOleCache, IOleCache2, IOleCacheControl, IPersistStorae, IDataObject, + * IOleCache, IOleCache2, IOleCacheControl, IPersistStorage, IDataObject, * IViewObject and IViewObject2. */ HRESULT WINAPI CreateDataCache( diff --git a/dlls/ole32/defaulthandler.c b/dlls/ole32/defaulthandler.c index f9f676fe849..dda2d4b363c 100644 --- a/dlls/ole32/defaulthandler.c +++ b/dlls/ole32/defaulthandler.c @@ -396,7 +396,7 @@ static HRESULT WINAPI DefaultHandler_SetHostNames( if (object_is_running(This)) IOleObject_SetHostNames(This->pOleDelegate, szContainerApp, szContainerObj); - /* Be sure to cleanup before re-assinging the strings. */ + /* Be sure to cleanup before re-assigning the strings. */ HeapFree( GetProcessHeap(), 0, This->containerApp ); This->containerApp = NULL; HeapFree( GetProcessHeap(), 0, This->containerObj ); diff --git a/dlls/ole32/filemoniker.c b/dlls/ole32/filemoniker.c index 8702d0fe28a..7737919d30b 100644 --- a/dlls/ole32/filemoniker.c +++ b/dlls/ole32/filemoniker.c @@ -600,7 +600,7 @@ FileMonikerImpl_BindToStorage(IMoniker* iface, IBindCtx* pbc, IMoniker* pmkToLef /* get the file name */ IMoniker_GetDisplayName(iface,pbc,pmkToLeft,&filePath); - /* verifie if the file contains a storage object */ + /* verify if the file contains a storage object */ res=StgIsStorageFile(filePath); if(res==S_OK){ @@ -679,7 +679,7 @@ FileMonikerImpl_ComposeWith(IMoniker* iface, IMoniker* pmkRight, IMoniker_IsSystemMoniker(pmkRight,&mkSys); - /* check if we have two filemonikers to compose or not */ + /* check if we have two FileMonikers to compose or not */ if(mkSys==MKSYS_FILEMONIKER){ CreateBindCtx(0,&bind); @@ -1345,7 +1345,7 @@ FileMonikerImpl_Construct(FileMonikerImpl* This, LPCOLESTR lpszPathName) TRACE("(%p,%s)\n",This,debugstr_w(lpszPathName)); - /* Initialize the virtual fgunction table. */ + /* Initialize the virtual function table. */ This->lpvtbl1 = &VT_FileMonikerImpl; This->lpvtbl2 = &VT_ROTDataImpl; This->ref = 0; diff --git a/dlls/ole32/ifs.c b/dlls/ole32/ifs.c index ec20da364ea..87fc51e2779 100644 --- a/dlls/ole32/ifs.c +++ b/dlls/ole32/ifs.c @@ -640,7 +640,7 @@ HRESULT WINAPI CoRegisterMallocSpy(LPMALLOCSPY pMallocSpy) /*********************************************************************** * CoRevokeMallocSpy [OLE32.@] * - * Revokes a previousl registered object that receives notifications on memory + * Revokes a previously registered object that receives notifications on memory * allocations and frees. * * PARAMS diff --git a/dlls/ole32/itemmoniker.c b/dlls/ole32/itemmoniker.c index 239dfb6363e..8cab4f98f1f 100644 --- a/dlls/ole32/itemmoniker.c +++ b/dlls/ole32/itemmoniker.c @@ -270,7 +270,7 @@ HRESULT WINAPI ItemMonikerImpl_Load(IMoniker* iface,IStream* pStm) TRACE("\n"); - /* for more details about data read by this function see coments of ItemMonikerImpl_Save function */ + /* for more details about data read by this function see comments of ItemMonikerImpl_Save function */ /* read item delimiter string length + 1 */ res=IStream_Read(pStm,&delimiterLength,sizeof(DWORD),&bread); @@ -376,7 +376,7 @@ HRESULT WINAPI ItemMonikerImpl_GetSizeMax(IMoniker* iface, if (!pcbSize) return E_POINTER; - /* for more details see ItemMonikerImpl_Save coments */ + /* for more details see ItemMonikerImpl_Save comments */ pcbSize->u.LowPart = sizeof(DWORD) + /* DWORD which contains delimiter length */ delimiterLength*4 + /* item delimiter string */ @@ -400,7 +400,7 @@ static HRESULT WINAPI ItemMonikerImpl_Construct(ItemMonikerImpl* This, LPCOLESTR TRACE("(%p,%s,%s)\n",This,debugstr_w(lpszDelim),debugstr_w(lpszItem)); - /* Initialize the virtual fgunction table. */ + /* Initialize the virtual function table. */ This->lpvtbl1 = &VT_ItemMonikerImpl; This->lpvtbl2 = &VT_ROTDataImpl; This->ref = 0; diff --git a/dlls/ole32/moniker.c b/dlls/ole32/moniker.c index dca2a1c8e48..6a1c1e96310 100644 --- a/dlls/ole32/moniker.c +++ b/dlls/ole32/moniker.c @@ -1220,9 +1220,9 @@ HRESULT WINAPI GetClassFile(LPCOLESTR filePathName,CLSID *pclsid) return res; } - /* if the file is not a storage object then attemps to match various bits in the file against a - pattern in the registry. this case is not frequently used ! so I present only the psodocode for - this case + /* If the file is not a storage object then attempt to match various bits in the file against a + pattern in the registry. This case is not frequently used, so I present only the psodocode for + this case. for(i=0;ilpvtbl = &VT_PointerMonikerImpl; This->ref = 1; if (punk) diff --git a/dlls/ole32/rpc.c b/dlls/ole32/rpc.c index 7af0b2908fd..df1c10043a9 100644 --- a/dlls/ole32/rpc.c +++ b/dlls/ole32/rpc.c @@ -812,8 +812,8 @@ static HRESULT WINAPI ClientRpcChannelBuffer_SendReceive(LPRPCCHANNELBUFFER ifac wine_dbgstr_longlong(This->oxid)); return RPC_E_WRONG_THREAD; } - /* this situation should be impossible in multi-threaded apartments, - * because the calling thread isn't re-entrable. + /* This situation should be impossible in multi-threaded apartments, + * because the calling thread isn't re-enterable. * Note: doing a COM call during the processing of a sent message is * only disallowed if a client call is already being waited for * completion */ @@ -1172,7 +1172,7 @@ static HRESULT unmarshal_ORPC_EXTENT_ARRAY(RPC_MESSAGE *msg, const char *end, msg->Buffer = (char *)msg->Buffer + sizeof(DWORD); - /* arbritary limit for security (don't know what native does) */ + /* arbitrary limit for security (don't know what native does) */ if (extensions->size > 256) { ERR("too many extensions: %ld\n", extensions->size); diff --git a/dlls/ole32/stg_prop.c b/dlls/ole32/stg_prop.c index d016d4efaaf..d9dafe6f0c2 100644 --- a/dlls/ole32/stg_prop.c +++ b/dlls/ole32/stg_prop.c @@ -2025,7 +2025,7 @@ static HRESULT PropertyStorage_ConstructEmpty(IStream *stm, ps->grfFlags = grfFlags; if (ps->grfFlags & PROPSETFLAG_CASE_SENSITIVE) ps->format = 1; - /* default to Unicode unless told not to, as specified here on mdsn */ + /* default to Unicode unless told not to, as specified on msdn */ if (ps->grfFlags & PROPSETFLAG_ANSI) ps->codePage = GetACP(); else diff --git a/dlls/ole32/storage.c b/dlls/ole32/storage.c index 7a711aed745..d356c676220 100644 --- a/dlls/ole32/storage.c +++ b/dlls/ole32/storage.c @@ -304,7 +304,7 @@ static void _create_istream16(LPSTREAM16 *str); * directory searches while not using a more efficient file * block locating system than FAT (seedling/sapling/tree * would result in a massive improvement - in fact we have - * an alternative to DocFiles that we use internally that + * an alternative to docfiles that we use internally that * uses seedling/sapling/tree and *is* far more efficient). * * It is worth noting that the MS implementation of red-black diff --git a/dlls/ole32/storage32.c b/dlls/ole32/storage32.c index 2bdad453f78..c3a36d83690 100644 --- a/dlls/ole32/storage32.c +++ b/dlls/ole32/storage32.c @@ -121,7 +121,7 @@ typedef struct DWORD dwOleObjFileNameLength; DWORD dwMetaFileWidth; DWORD dwMetaFileHeight; - CHAR strUnknown[8]; /* don't know what is this 8 byts information in OLE stream. */ + CHAR strUnknown[8]; /* don't know what this 8 byte information in OLE stream is. */ DWORD dwDataLength; BYTE *pData; }OLECONVERT_OLESTREAM_DATA; @@ -142,7 +142,7 @@ typedef struct }OLECONVERT_ISTORAGE_COMPOBJ; -/* Ole Presention Stream structure */ +/* Ole Presentation Stream structure */ /* Used for OleConvertIStorageToOLESTREAM and OleConvertOLESTREAMToIStorage */ typedef struct { @@ -263,7 +263,7 @@ static ULONG BLOCK_GetBigBlockOffset(ULONG index) } /************************************************************************ -** Storage32BaseImpl implementatiion +** Storage32BaseImpl implementation */ static HRESULT StorageImpl_ReadAt(StorageImpl* This, ULARGE_INTEGER offset, @@ -659,7 +659,7 @@ end: * Storage32BaseImpl_EnumElements (IStorage) * * This method will create an enumerator object that can be used to - * retrieve informatino about all the properties in the storage object. + * retrieve information about all the properties in the storage object. * * See Windows documentation for more details on IStorage methods. */ @@ -1410,12 +1410,12 @@ static ULONG getFreeProperty( * * Internal Method * - * Case insensitive comparaison of StgProperty.name by first considering + * Case insensitive comparison of StgProperty.name by first considering * their size. * - * Returns <0 when newPrpoerty < currentProperty - * >0 when newPrpoerty > currentProperty - * 0 when newPrpoerty == currentProperty + * Returns <0 when newProperty < currentProperty + * >0 when newProperty > currentProperty + * 0 when newProperty == currentProperty */ static LONG propertyNameCmp( const OLECHAR *newProperty, @@ -6574,7 +6574,7 @@ static DWORD GetCreationModeFromSTGM(DWORD stgm) * RETURNS * Success: S_OK * Failure: CONVERT10_E_OLESTREAM_GET for invalid Get - * CONVERT10_E_OLESTREAM_FMT if the OLEID is invalide + * CONVERT10_E_OLESTREAM_FMT if the OLEID is invalid * * NOTES * This function is used by OleConvertOLESTREAMToIStorage only. @@ -6694,7 +6694,7 @@ static HRESULT OLECONVERT_LoadOLE10(LPOLESTREAM pOleStream, OLECONVERT_OLESTREAM } } - if(hRes == S_OK) /* I don't know what is this 8 byts information is we have to figure out */ + if(hRes == S_OK) /* I don't know what this 8 byte information is. We have to figure out */ { if(!bStrem1) /* if it is a second OLE stream data */ { @@ -7649,7 +7649,7 @@ static void OLECONVERT_GetOle20PresData(LPSTORAGE pStorage, OLECONVERT_OLESTREAM * Read info on MSDN * * TODO - * DVTARGETDEVICE paramenter is not handled + * DVTARGETDEVICE parameter is not handled * Still unsure of some mem fields for OLE 10 Stream * Still some unknowns for the IStorage: "\002OlePres000", "\001CompObj", * and "\001OLE" streams diff --git a/dlls/ole32/storage32.h b/dlls/ole32/storage32.h index 76db89559df..b358ed282b4 100644 --- a/dlls/ole32/storage32.h +++ b/dlls/ole32/storage32.h @@ -374,7 +374,7 @@ struct StgStreamImpl /* * The information in the stream is represented by a chain of small blocks * or a chain of large blocks. Depending on the case, one of the two - * following variabled points to that information. + * following variables points to that information. */ BlockChainStream* bigBlockChain; SmallBlockChainStream* smallBlockChain;