Commit 1b24da3a authored by Austin English's avatar Austin English Committed by Alexandre Julliard

ole32: Spelling fixes.

parent 7fa1c9d0
...@@ -215,7 +215,7 @@ AntiMonikerImpl_GetSizeMax(IMoniker* iface, ULARGE_INTEGER* pcbSize) ...@@ -215,7 +215,7 @@ AntiMonikerImpl_GetSizeMax(IMoniker* iface, ULARGE_INTEGER* pcbSize)
if (!pcbSize) if (!pcbSize)
return E_POINTER; 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 * Normally the sizemax must be sizeof DWORD, but
...@@ -600,7 +600,7 @@ static HRESULT AntiMonikerImpl_Construct(AntiMonikerImpl* This) ...@@ -600,7 +600,7 @@ static HRESULT AntiMonikerImpl_Construct(AntiMonikerImpl* This)
TRACE("(%p)\n",This); TRACE("(%p)\n",This);
/* Initialize the virtual fgunction table. */ /* Initialize the virtual function table. */
This->lpvtbl1 = &VT_AntiMonikerImpl; This->lpvtbl1 = &VT_AntiMonikerImpl;
This->lpvtbl2 = &VT_ROTDataImpl; This->lpvtbl2 = &VT_ROTDataImpl;
This->ref = 0; This->ref = 0;
......
...@@ -46,7 +46,7 @@ typedef struct BindCtxObject{ ...@@ -46,7 +46,7 @@ typedef struct BindCtxObject{
} BindCtxObject; } BindCtxObject;
/* BindCtx data strucrture */ /* BindCtx data structure */
typedef struct BindCtxImpl{ typedef struct BindCtxImpl{
const IBindCtxVtbl *lpVtbl; /* VTable relative to the IBindCtx interface.*/ const IBindCtxVtbl *lpVtbl; /* VTable relative to the IBindCtx interface.*/
......
...@@ -1690,8 +1690,8 @@ HRESULT WINAPI CoGetPSClsid(REFIID riid, CLSID *pclsid) ...@@ -1690,8 +1690,8 @@ HRESULT WINAPI CoGetPSClsid(REFIID riid, CLSID *pclsid)
} }
RegCloseKey(hkey); RegCloseKey(hkey);
/* We have the CLSid we want back from the registry as a string, so /* We have the CLSID we want back from the registry as a string, so
lets convert it into a CLSID structure */ let's convert it into a CLSID structure */
if (CLSIDFromString(value, pclsid) != NOERROR) if (CLSIDFromString(value, pclsid) != NOERROR)
return REGDB_E_IIDNOTREG; return REGDB_E_IIDNOTREG;
......
...@@ -54,7 +54,7 @@ typedef struct CompositeMonikerImpl{ ...@@ -54,7 +54,7 @@ typedef struct CompositeMonikerImpl{
LONG ref; /* reference counter for this object */ 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 */ ULONG tabSize; /* size of tabMoniker */
...@@ -903,7 +903,7 @@ CompositeMonikerImpl_CommonPrefixWith(IMoniker* iface, IMoniker* pmkOther, ...@@ -903,7 +903,7 @@ CompositeMonikerImpl_CommonPrefixWith(IMoniker* iface, IMoniker* pmkOther,
IEnumMoniker_Next(enumMoniker1,1,&tempMk1,NULL); 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){ if (nbCommonMk>1){
/* initialize the common prefix moniker with the composite of two first moniker (from the left)*/ /* 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, ...@@ -928,7 +928,7 @@ CompositeMonikerImpl_CommonPrefixWith(IMoniker* iface, IMoniker* pmkOther,
return S_OK; return S_OK;
} }
else{ 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; *ppmkPrefix=tempMk1;
return S_OK; return S_OK;
......
...@@ -66,7 +66,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(ole); ...@@ -66,7 +66,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(ole);
* PresentationDataHeader * PresentationDataHeader
* *
* This structure represents the header of the \002OlePresXXX stream in * This structure represents the header of the \002OlePresXXX stream in
* the OLE object strorage. * the OLE object storage.
*/ */
typedef struct PresentationDataHeader typedef struct PresentationDataHeader
{ {
...@@ -2252,7 +2252,7 @@ static const IOleCacheControlVtbl DataCache_IOleCacheControl_VTable = ...@@ -2252,7 +2252,7 @@ static const IOleCacheControlVtbl DataCache_IOleCacheControl_VTable =
* *
* NOTES * NOTES
* The following interfaces are supported by the returned data cache object: * The following interfaces are supported by the returned data cache object:
* IOleCache, IOleCache2, IOleCacheControl, IPersistStorae, IDataObject, * IOleCache, IOleCache2, IOleCacheControl, IPersistStorage, IDataObject,
* IViewObject and IViewObject2. * IViewObject and IViewObject2.
*/ */
HRESULT WINAPI CreateDataCache( HRESULT WINAPI CreateDataCache(
......
...@@ -396,7 +396,7 @@ static HRESULT WINAPI DefaultHandler_SetHostNames( ...@@ -396,7 +396,7 @@ static HRESULT WINAPI DefaultHandler_SetHostNames(
if (object_is_running(This)) if (object_is_running(This))
IOleObject_SetHostNames(This->pOleDelegate, szContainerApp, szContainerObj); 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 ); HeapFree( GetProcessHeap(), 0, This->containerApp );
This->containerApp = NULL; This->containerApp = NULL;
HeapFree( GetProcessHeap(), 0, This->containerObj ); HeapFree( GetProcessHeap(), 0, This->containerObj );
......
...@@ -600,7 +600,7 @@ FileMonikerImpl_BindToStorage(IMoniker* iface, IBindCtx* pbc, IMoniker* pmkToLef ...@@ -600,7 +600,7 @@ FileMonikerImpl_BindToStorage(IMoniker* iface, IBindCtx* pbc, IMoniker* pmkToLef
/* get the file name */ /* get the file name */
IMoniker_GetDisplayName(iface,pbc,pmkToLeft,&filePath); 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); res=StgIsStorageFile(filePath);
if(res==S_OK){ if(res==S_OK){
...@@ -679,7 +679,7 @@ FileMonikerImpl_ComposeWith(IMoniker* iface, IMoniker* pmkRight, ...@@ -679,7 +679,7 @@ FileMonikerImpl_ComposeWith(IMoniker* iface, IMoniker* pmkRight,
IMoniker_IsSystemMoniker(pmkRight,&mkSys); 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){ if(mkSys==MKSYS_FILEMONIKER){
CreateBindCtx(0,&bind); CreateBindCtx(0,&bind);
...@@ -1345,7 +1345,7 @@ FileMonikerImpl_Construct(FileMonikerImpl* This, LPCOLESTR lpszPathName) ...@@ -1345,7 +1345,7 @@ FileMonikerImpl_Construct(FileMonikerImpl* This, LPCOLESTR lpszPathName)
TRACE("(%p,%s)\n",This,debugstr_w(lpszPathName)); TRACE("(%p,%s)\n",This,debugstr_w(lpszPathName));
/* Initialize the virtual fgunction table. */ /* Initialize the virtual function table. */
This->lpvtbl1 = &VT_FileMonikerImpl; This->lpvtbl1 = &VT_FileMonikerImpl;
This->lpvtbl2 = &VT_ROTDataImpl; This->lpvtbl2 = &VT_ROTDataImpl;
This->ref = 0; This->ref = 0;
......
...@@ -640,7 +640,7 @@ HRESULT WINAPI CoRegisterMallocSpy(LPMALLOCSPY pMallocSpy) ...@@ -640,7 +640,7 @@ HRESULT WINAPI CoRegisterMallocSpy(LPMALLOCSPY pMallocSpy)
/*********************************************************************** /***********************************************************************
* CoRevokeMallocSpy [OLE32.@] * 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. * allocations and frees.
* *
* PARAMS * PARAMS
......
...@@ -270,7 +270,7 @@ HRESULT WINAPI ItemMonikerImpl_Load(IMoniker* iface,IStream* pStm) ...@@ -270,7 +270,7 @@ HRESULT WINAPI ItemMonikerImpl_Load(IMoniker* iface,IStream* pStm)
TRACE("\n"); 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 */ /* read item delimiter string length + 1 */
res=IStream_Read(pStm,&delimiterLength,sizeof(DWORD),&bread); res=IStream_Read(pStm,&delimiterLength,sizeof(DWORD),&bread);
...@@ -376,7 +376,7 @@ HRESULT WINAPI ItemMonikerImpl_GetSizeMax(IMoniker* iface, ...@@ -376,7 +376,7 @@ HRESULT WINAPI ItemMonikerImpl_GetSizeMax(IMoniker* iface,
if (!pcbSize) if (!pcbSize)
return E_POINTER; 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 */ pcbSize->u.LowPart = sizeof(DWORD) + /* DWORD which contains delimiter length */
delimiterLength*4 + /* item delimiter string */ delimiterLength*4 + /* item delimiter string */
...@@ -400,7 +400,7 @@ static HRESULT WINAPI ItemMonikerImpl_Construct(ItemMonikerImpl* This, LPCOLESTR ...@@ -400,7 +400,7 @@ static HRESULT WINAPI ItemMonikerImpl_Construct(ItemMonikerImpl* This, LPCOLESTR
TRACE("(%p,%s,%s)\n",This,debugstr_w(lpszDelim),debugstr_w(lpszItem)); 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->lpvtbl1 = &VT_ItemMonikerImpl;
This->lpvtbl2 = &VT_ROTDataImpl; This->lpvtbl2 = &VT_ROTDataImpl;
This->ref = 0; This->ref = 0;
......
...@@ -1220,9 +1220,9 @@ HRESULT WINAPI GetClassFile(LPCOLESTR filePathName,CLSID *pclsid) ...@@ -1220,9 +1220,9 @@ HRESULT WINAPI GetClassFile(LPCOLESTR filePathName,CLSID *pclsid)
return res; return res;
} }
/* if the file is not a storage object then attemps to match various bits in the file against a /* 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 pattern in the registry. This case is not frequently used, so I present only the psodocode for
this case this case.
for(i=0;i<nFileTypes;i++) for(i=0;i<nFileTypes;i++)
...@@ -1249,7 +1249,7 @@ HRESULT WINAPI GetClassFile(LPCOLESTR filePathName,CLSID *pclsid) ...@@ -1249,7 +1249,7 @@ HRESULT WINAPI GetClassFile(LPCOLESTR filePathName,CLSID *pclsid)
nbElm=FileMonikerImpl_DecomposePath(filePathName,&pathDec); nbElm=FileMonikerImpl_DecomposePath(filePathName,&pathDec);
absFile=pathDec[nbElm-1]; absFile=pathDec[nbElm-1];
/* failed if the path represente a directory and not an absolute file name*/ /* failed if the path represents a directory and not an absolute file name*/
if (!lstrcmpW(absFile, bkslashW)) if (!lstrcmpW(absFile, bkslashW))
return MK_E_INVALIDEXTENSION; return MK_E_INVALIDEXTENSION;
......
...@@ -409,7 +409,7 @@ HRESULT WINAPI StringFromCLSID16( ...@@ -409,7 +409,7 @@ HRESULT WINAPI StringFromCLSID16(
*/ */
HRESULT WINAPI ProgIDFromCLSID16( HRESULT WINAPI ProgIDFromCLSID16(
REFCLSID clsid, /* [in] class id as found in registry */ REFCLSID clsid, /* [in] class id as found in registry */
LPOLESTR16 *lplpszProgID/* [out] associated Prog ID */ LPOLESTR16 *lplpszProgID/* [out] associated Program ID */
) { ) {
static const WCHAR wszProgID[] = {'P','r','o','g','I','D',0}; static const WCHAR wszProgID[] = {'P','r','o','g','I','D',0};
HKEY hkey; HKEY hkey;
......
...@@ -542,7 +542,7 @@ static void PointerMonikerImpl_Construct(PointerMonikerImpl* This, IUnknown *pun ...@@ -542,7 +542,7 @@ static void PointerMonikerImpl_Construct(PointerMonikerImpl* This, IUnknown *pun
{ {
TRACE("(%p)\n",This); TRACE("(%p)\n",This);
/* Initialize the virtual fgunction table. */ /* Initialize the virtual function table. */
This->lpvtbl = &VT_PointerMonikerImpl; This->lpvtbl = &VT_PointerMonikerImpl;
This->ref = 1; This->ref = 1;
if (punk) if (punk)
......
...@@ -812,8 +812,8 @@ static HRESULT WINAPI ClientRpcChannelBuffer_SendReceive(LPRPCCHANNELBUFFER ifac ...@@ -812,8 +812,8 @@ static HRESULT WINAPI ClientRpcChannelBuffer_SendReceive(LPRPCCHANNELBUFFER ifac
wine_dbgstr_longlong(This->oxid)); wine_dbgstr_longlong(This->oxid));
return RPC_E_WRONG_THREAD; return RPC_E_WRONG_THREAD;
} }
/* this situation should be impossible in multi-threaded apartments, /* This situation should be impossible in multi-threaded apartments,
* because the calling thread isn't re-entrable. * because the calling thread isn't re-enterable.
* Note: doing a COM call during the processing of a sent message is * Note: doing a COM call during the processing of a sent message is
* only disallowed if a client call is already being waited for * only disallowed if a client call is already being waited for
* completion */ * completion */
...@@ -1172,7 +1172,7 @@ static HRESULT unmarshal_ORPC_EXTENT_ARRAY(RPC_MESSAGE *msg, const char *end, ...@@ -1172,7 +1172,7 @@ static HRESULT unmarshal_ORPC_EXTENT_ARRAY(RPC_MESSAGE *msg, const char *end,
msg->Buffer = (char *)msg->Buffer + sizeof(DWORD); 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) if (extensions->size > 256)
{ {
ERR("too many extensions: %ld\n", extensions->size); ERR("too many extensions: %ld\n", extensions->size);
......
...@@ -2025,7 +2025,7 @@ static HRESULT PropertyStorage_ConstructEmpty(IStream *stm, ...@@ -2025,7 +2025,7 @@ static HRESULT PropertyStorage_ConstructEmpty(IStream *stm,
ps->grfFlags = grfFlags; ps->grfFlags = grfFlags;
if (ps->grfFlags & PROPSETFLAG_CASE_SENSITIVE) if (ps->grfFlags & PROPSETFLAG_CASE_SENSITIVE)
ps->format = 1; 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) if (ps->grfFlags & PROPSETFLAG_ANSI)
ps->codePage = GetACP(); ps->codePage = GetACP();
else else
......
...@@ -304,7 +304,7 @@ static void _create_istream16(LPSTREAM16 *str); ...@@ -304,7 +304,7 @@ static void _create_istream16(LPSTREAM16 *str);
* directory searches while not using a more efficient file * directory searches while not using a more efficient file
* block locating system than FAT (seedling/sapling/tree * block locating system than FAT (seedling/sapling/tree
* would result in a massive improvement - in fact we have * 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). * uses seedling/sapling/tree and *is* far more efficient).
* *
* It is worth noting that the MS implementation of red-black * It is worth noting that the MS implementation of red-black
......
...@@ -121,7 +121,7 @@ typedef struct ...@@ -121,7 +121,7 @@ typedef struct
DWORD dwOleObjFileNameLength; DWORD dwOleObjFileNameLength;
DWORD dwMetaFileWidth; DWORD dwMetaFileWidth;
DWORD dwMetaFileHeight; 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; DWORD dwDataLength;
BYTE *pData; BYTE *pData;
}OLECONVERT_OLESTREAM_DATA; }OLECONVERT_OLESTREAM_DATA;
...@@ -142,7 +142,7 @@ typedef struct ...@@ -142,7 +142,7 @@ typedef struct
}OLECONVERT_ISTORAGE_COMPOBJ; }OLECONVERT_ISTORAGE_COMPOBJ;
/* Ole Presention Stream structure */ /* Ole Presentation Stream structure */
/* Used for OleConvertIStorageToOLESTREAM and OleConvertOLESTREAMToIStorage */ /* Used for OleConvertIStorageToOLESTREAM and OleConvertOLESTREAMToIStorage */
typedef struct typedef struct
{ {
...@@ -263,7 +263,7 @@ static ULONG BLOCK_GetBigBlockOffset(ULONG index) ...@@ -263,7 +263,7 @@ static ULONG BLOCK_GetBigBlockOffset(ULONG index)
} }
/************************************************************************ /************************************************************************
** Storage32BaseImpl implementatiion ** Storage32BaseImpl implementation
*/ */
static HRESULT StorageImpl_ReadAt(StorageImpl* This, static HRESULT StorageImpl_ReadAt(StorageImpl* This,
ULARGE_INTEGER offset, ULARGE_INTEGER offset,
...@@ -659,7 +659,7 @@ end: ...@@ -659,7 +659,7 @@ end:
* Storage32BaseImpl_EnumElements (IStorage) * Storage32BaseImpl_EnumElements (IStorage)
* *
* This method will create an enumerator object that can be used to * 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. * See Windows documentation for more details on IStorage methods.
*/ */
...@@ -1410,12 +1410,12 @@ static ULONG getFreeProperty( ...@@ -1410,12 +1410,12 @@ static ULONG getFreeProperty(
* *
* Internal Method * Internal Method
* *
* Case insensitive comparaison of StgProperty.name by first considering * Case insensitive comparison of StgProperty.name by first considering
* their size. * their size.
* *
* Returns <0 when newPrpoerty < currentProperty * Returns <0 when newProperty < currentProperty
* >0 when newPrpoerty > currentProperty * >0 when newProperty > currentProperty
* 0 when newPrpoerty == currentProperty * 0 when newProperty == currentProperty
*/ */
static LONG propertyNameCmp( static LONG propertyNameCmp(
const OLECHAR *newProperty, const OLECHAR *newProperty,
...@@ -6574,7 +6574,7 @@ static DWORD GetCreationModeFromSTGM(DWORD stgm) ...@@ -6574,7 +6574,7 @@ static DWORD GetCreationModeFromSTGM(DWORD stgm)
* RETURNS * RETURNS
* Success: S_OK * Success: S_OK
* Failure: CONVERT10_E_OLESTREAM_GET for invalid Get * 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 * NOTES
* This function is used by OleConvertOLESTREAMToIStorage only. * This function is used by OleConvertOLESTREAMToIStorage only.
...@@ -6694,7 +6694,7 @@ static HRESULT OLECONVERT_LoadOLE10(LPOLESTREAM pOleStream, OLECONVERT_OLESTREAM ...@@ -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 */ if(!bStrem1) /* if it is a second OLE stream data */
{ {
...@@ -7649,7 +7649,7 @@ static void OLECONVERT_GetOle20PresData(LPSTORAGE pStorage, OLECONVERT_OLESTREAM ...@@ -7649,7 +7649,7 @@ static void OLECONVERT_GetOle20PresData(LPSTORAGE pStorage, OLECONVERT_OLESTREAM
* Read info on MSDN * Read info on MSDN
* *
* TODO * TODO
* DVTARGETDEVICE paramenter is not handled * DVTARGETDEVICE parameter is not handled
* Still unsure of some mem fields for OLE 10 Stream * Still unsure of some mem fields for OLE 10 Stream
* Still some unknowns for the IStorage: "\002OlePres000", "\001CompObj", * Still some unknowns for the IStorage: "\002OlePres000", "\001CompObj",
* and "\001OLE" streams * and "\001OLE" streams
......
...@@ -374,7 +374,7 @@ struct StgStreamImpl ...@@ -374,7 +374,7 @@ struct StgStreamImpl
/* /*
* The information in the stream is represented by a chain of small blocks * 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 * 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; BlockChainStream* bigBlockChain;
SmallBlockChainStream* smallBlockChain; SmallBlockChainStream* smallBlockChain;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment