Nikolay Sivov : ole32: Use interface macros to call methods.
Module: wine Branch: master Commit: 88e6c8175b36ec4b2e06c003bf8e7da7e053b57c URL: http://source.winehq.org/git/wine.git/?a=commit;h=88e6c8175b36ec4b2e06c003bf... Author: Nikolay Sivov <nsivov(a)codeweavers.com> Date: Tue Jul 17 10:15:25 2012 +0400 ole32: Use interface macros to call methods. --- dlls/ole32/stg_stream.c | 2 +- dlls/ole32/storage32.c | 8 ++------ 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/dlls/ole32/stg_stream.c b/dlls/ole32/stg_stream.c index 6a39b94..1471162 100644 --- a/dlls/ole32/stg_stream.c +++ b/dlls/ole32/stg_stream.c @@ -657,7 +657,7 @@ static HRESULT WINAPI StgStreamImpl_Clone( seek_pos.QuadPart = This->currentPosition.QuadPart; - hres=StgStreamImpl_Seek (*ppstm, seek_pos, STREAM_SEEK_SET, NULL); + hres = IStream_Seek(*ppstm, seek_pos, STREAM_SEEK_SET, NULL); assert (SUCCEEDED(hres)); diff --git a/dlls/ole32/storage32.c b/dlls/ole32/storage32.c index a1c925f..30d380b 100644 --- a/dlls/ole32/storage32.c +++ b/dlls/ole32/storage32.c @@ -2152,7 +2152,7 @@ static HRESULT deleteStreamContents( size.u.HighPart = 0; size.u.LowPart = 0; - hr = StorageBaseImpl_OpenStream(&parentStorage->IStorage_iface, + hr = IStorage_OpenStream(&parentStorage->IStorage_iface, entryDataToDelete.name, NULL, STGM_WRITE | STGM_SHARE_EXCLUSIVE, 0, &pis); if (hr!=S_OK) @@ -4798,14 +4798,10 @@ static void TransactedSnapshotImpl_Destroy( StorageBaseImpl *iface) { TransactedSnapshotImpl* This = (TransactedSnapshotImpl*) iface; - TransactedSnapshotImpl_Revert(&This->base.IStorage_iface); - + IStorage_Revert(&This->base.IStorage_iface); IStorage_Release(&This->transactedParent->IStorage_iface); - IStorage_Release(&This->scratch->IStorage_iface); - HeapFree(GetProcessHeap(), 0, This->entries); - HeapFree(GetProcessHeap(), 0, This); }
participants (1)
-
Alexandre Julliard