From 16574a8aab6e5ab281af3a6c215184ed54f594a3 Mon Sep 17 00:00:00 2001 From: Vincent Povirk Date: Wed, 28 Oct 2009 15:01:32 -0500 Subject: [PATCH 5/9] ole32: Remove uses of This->base.ancestorStorage in createDirEntry. This really is a StorageImpl, so there's no need to look up its StorageImpl. --- dlls/ole32/storage32.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dlls/ole32/storage32.c b/dlls/ole32/storage32.c index 66cbf92..68ca23a 100644 --- a/dlls/ole32/storage32.c +++ b/dlls/ole32/storage32.c @@ -1166,7 +1166,7 @@ static HRESULT createDirEntry( do { - hr = StorageImpl_ReadRawDirEntry(storage->base.ancestorStorage, + hr = StorageImpl_ReadRawDirEntry(storage, currentPropertyIndex, currentData); @@ -1211,7 +1211,7 @@ static HRESULT createDirEntry( * obtain the new count of property blocks */ blockCount = BlockChainStream_GetCount( - storage->base.ancestorStorage->rootBlockChain)+1; + storage->rootBlockChain)+1; /* * initialize the size used by the property stream @@ -1222,7 +1222,7 @@ static HRESULT createDirEntry( /* * add a property block to the property chain */ - BlockChainStream_SetSize(storage->base.ancestorStorage->rootBlockChain, newSize); + BlockChainStream_SetSize(storage->rootBlockChain, newSize); /* * memset the empty property in order to initialize the unused newly @@ -1241,7 +1241,7 @@ static HRESULT createDirEntry( propertyIndex++) { StorageImpl_WriteRawDirEntry( - storage->base.ancestorStorage, + storage, propertyIndex, emptyData); } -- 1.6.3.3