ole32: Take a StorageBaseImpl in insertIntoTree.
This commit is contained in:
parent
9300a92ccc
commit
0425ed1d38
|
@ -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(
|
|||
¤tEntry);
|
||||
|
||||
/* 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,
|
||||
¤tEntry);
|
||||
|
||||
|
@ -1332,7 +1332,7 @@ static HRESULT insertIntoTree(
|
|||
/*
|
||||
* Read
|
||||
*/
|
||||
StorageImpl_ReadDirEntry(This,
|
||||
StorageBaseImpl_ReadDirEntry(This,
|
||||
currentEntry.dirRootEntry,
|
||||
¤tEntry);
|
||||
|
||||
|
@ -1348,7 +1348,7 @@ static HRESULT insertIntoTree(
|
|||
{
|
||||
if (previous != DIRENTRY_NULL)
|
||||
{
|
||||
StorageImpl_ReadDirEntry(This,
|
||||
StorageBaseImpl_ReadDirEntry(This,
|
||||
previous,
|
||||
¤tEntry);
|
||||
current = previous;
|
||||
|
@ -1356,7 +1356,7 @@ static HRESULT insertIntoTree(
|
|||
else
|
||||
{
|
||||
currentEntry.leftChild = newEntryIndex;
|
||||
StorageImpl_WriteDirEntry(This,
|
||||
StorageBaseImpl_WriteDirEntry(This,
|
||||
current,
|
||||
¤tEntry);
|
||||
found = 1;
|
||||
|
@ -1366,7 +1366,7 @@ static HRESULT insertIntoTree(
|
|||
{
|
||||
if (next != DIRENTRY_NULL)
|
||||
{
|
||||
StorageImpl_ReadDirEntry(This,
|
||||
StorageBaseImpl_ReadDirEntry(This,
|
||||
next,
|
||||
¤tEntry);
|
||||
current = next;
|
||||
|
@ -1374,7 +1374,7 @@ static HRESULT insertIntoTree(
|
|||
else
|
||||
{
|
||||
currentEntry.rightChild = newEntryIndex;
|
||||
StorageImpl_WriteDirEntry(This,
|
||||
StorageBaseImpl_WriteDirEntry(This,
|
||||
current,
|
||||
¤tEntry);
|
||||
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,
|
||||
¤tEntry);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue