Commit 754631be authored by Fabian Maurer's avatar Fabian Maurer Committed by Alexandre Julliard

coml2: Move WriteClassStm from ole32.

parent fae82527
......@@ -30,4 +30,4 @@
@ stub StgOpenStorageOnILockBytes
@ stub StgSetTimes
@ stub WriteClassStg
@ stub WriteClassStm
@ stdcall WriteClassStm(ptr ptr)
......@@ -75,6 +75,19 @@ HRESULT WINAPI ReadClassStg(IStorage *pstg, CLSID *pclsid)
}
/***********************************************************************
* WriteClassStm (coml2.@)
*/
HRESULT WINAPI WriteClassStm(IStream *pStm, REFCLSID rclsid)
{
TRACE("(%p,%p)\n", pStm, rclsid);
if (!pStm || !rclsid)
return E_INVALIDARG;
return IStream_Write(pStm, rclsid, sizeof(CLSID), NULL);
}
/***********************************************************************
* ReadClassStm (coml2.@)
*/
HRESULT WINAPI ReadClassStm(IStream *pStm, CLSID *pclsid)
......
......@@ -9426,29 +9426,6 @@ StgIsStorageFile(LPCOLESTR fn)
return S_FALSE;
}
/***********************************************************************
* WriteClassStm (OLE32.@)
*
* Writes a CLSID to a stream.
*
* PARAMS
* pStm [I] Stream to write to.
* rclsid [I] CLSID to write.
*
* RETURNS
* Success: S_OK.
* Failure: HRESULT code.
*/
HRESULT WINAPI WriteClassStm(IStream *pStm,REFCLSID rclsid)
{
TRACE("(%p,%p)\n",pStm,rclsid);
if (!pStm || !rclsid)
return E_INVALIDARG;
return IStream_Write(pStm,rclsid,sizeof(CLSID),NULL);
}
/************************************************************************
* OleConvert Functions
***********************************************************************/
......
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