mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-19 11:58:22 +00:00
Implemented body of HGLOBALStreamImpl::Clone.
This commit is contained in:
parent
d476a5ad31
commit
544efc84f1
|
@ -820,6 +820,15 @@ HRESULT WINAPI HGLOBALStreamImpl_Clone(
|
||||||
IStream* iface,
|
IStream* iface,
|
||||||
IStream** ppstm) /* [out] */
|
IStream** ppstm) /* [out] */
|
||||||
{
|
{
|
||||||
FIXME("not implemented!\n");
|
ULARGE_INTEGER dummy;
|
||||||
return E_NOTIMPL;
|
LARGE_INTEGER offset;
|
||||||
|
HRESULT hr;
|
||||||
|
HGLOBALStreamImpl* const This=(HGLOBALStreamImpl*)iface;
|
||||||
|
TRACE(" Cloning %p (deleteOnRelease=%d seek position=%ld)\n",iface,This->deleteOnRelease,(long)This->currentPosition.QuadPart);
|
||||||
|
hr=CreateStreamOnHGlobal(This->supportHandle, FALSE, ppstm);
|
||||||
|
if(FAILED(hr))
|
||||||
|
return hr;
|
||||||
|
offset.QuadPart=(LONGLONG)This->currentPosition.QuadPart;
|
||||||
|
HGLOBALStreamImpl_Seek(*ppstm,offset,STREAM_SEEK_SET,&dummy);
|
||||||
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue