ole32: Take a StorageBaseImpl in insertIntoTree.

This commit is contained in:
Vincent Povirk 2009-11-30 09:40:17 -06:00 committed by Alexandre Julliard
parent 9300a92ccc
commit 0425ed1d38
1 changed files with 29 additions and 29 deletions

View File

@ -189,7 +189,7 @@ static HRESULT destroyDirEntry(
DirRef index);
static HRESULT insertIntoTree(
StorageImpl *This,
StorageBaseImpl *This,
DirRef parentStorageIndex,
DirRef newEntryIndex);
@ -779,7 +779,7 @@ static HRESULT WINAPI StorageBaseImpl_RenameElement(
&currentEntry);
/* Insert the element in a new position in the tree */
insertIntoTree(This->ancestorStorage, This->storageDirEntry,
insertIntoTree(This, This->storageDirEntry,
currentEntryRef);
}
else
@ -920,7 +920,7 @@ static HRESULT WINAPI StorageBaseImpl_CreateStream(
* Insert the new entry in the parent storage's tree.
*/
insertIntoTree(
This->ancestorStorage,
This,
This->storageDirEntry,
newStreamEntryRef);
@ -1108,7 +1108,7 @@ static HRESULT WINAPI StorageBaseImpl_CreateStorage(
* Insert the new directory entry into the parent storage's tree
*/
insertIntoTree(
This->ancestorStorage,
This,
This->storageDirEntry,
newEntryRef);
@ -1294,7 +1294,7 @@ static LONG entryNameCmp(
* Add a directory entry to a storage
*/
static HRESULT insertIntoTree(
StorageImpl *This,
StorageBaseImpl *This,
DirRef parentStorageIndex,
DirRef newEntryIndex)
{
@ -1304,14 +1304,14 @@ static HRESULT insertIntoTree(
/*
* Read the inserted entry
*/
StorageImpl_ReadDirEntry(This,
StorageBaseImpl_ReadDirEntry(This,
newEntryIndex,
&newEntry);
/*
* Read the storage entry
*/
StorageImpl_ReadDirEntry(This,
StorageBaseImpl_ReadDirEntry(This,
parentStorageIndex,
&currentEntry);
@ -1332,7 +1332,7 @@ static HRESULT insertIntoTree(
/*
* Read
*/
StorageImpl_ReadDirEntry(This,
StorageBaseImpl_ReadDirEntry(This,
currentEntry.dirRootEntry,
&currentEntry);
@ -1348,7 +1348,7 @@ static HRESULT insertIntoTree(
{
if (previous != DIRENTRY_NULL)
{
StorageImpl_ReadDirEntry(This,
StorageBaseImpl_ReadDirEntry(This,
previous,
&currentEntry);
current = previous;
@ -1356,7 +1356,7 @@ static HRESULT insertIntoTree(
else
{
currentEntry.leftChild = newEntryIndex;
StorageImpl_WriteDirEntry(This,
StorageBaseImpl_WriteDirEntry(This,
current,
&currentEntry);
found = 1;
@ -1366,7 +1366,7 @@ static HRESULT insertIntoTree(
{
if (next != DIRENTRY_NULL)
{
StorageImpl_ReadDirEntry(This,
StorageBaseImpl_ReadDirEntry(This,
next,
&currentEntry);
current = next;
@ -1374,7 +1374,7 @@ static HRESULT insertIntoTree(
else
{
currentEntry.rightChild = newEntryIndex;
StorageImpl_WriteDirEntry(This,
StorageBaseImpl_WriteDirEntry(This,
current,
&currentEntry);
found = 1;
@ -1399,7 +1399,7 @@ static HRESULT insertIntoTree(
* The storage is empty, make the new entry the root of its element tree
*/
currentEntry.dirRootEntry = newEntryIndex;
StorageImpl_WriteDirEntry(This,
StorageBaseImpl_WriteDirEntry(This,
parentStorageIndex,
&currentEntry);
}