ole32: The stream returned by StgStreamImpl_Clone should have one reference, so call...
commit3bd31cfd1620cbc826c840e857e212fbf4c215a7
authorRob Shearman <rob@codeweavers.com>
Mon, 26 Feb 2007 12:57:19 +0000 (26 12:57 +0000)
committerAlexandre Julliard <julliard@winehq.org>
Mon, 26 Feb 2007 16:33:36 +0000 (26 17:33 +0100)
treebf76240ef94cb99c43b2b680f58e4b9572bb8e31
parent85aefa3567e9a3dcfce749a62e0395b3d56acdba
ole32: The stream returned by StgStreamImpl_Clone should have one reference, so call AddRef before returning.

Move the call to StorageBaseImpl_AddStream to StgStreamImpl_Construct to
fix StgStreamImpl_Clone, which forgets to call it.
Add tests for OLE structured storage tests for IStream::Clone.
dlls/ole32/stg_stream.c
dlls/ole32/storage32.c
dlls/ole32/storage32.h
dlls/ole32/tests/storage32.c