Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
0425ed1d
Commit
0425ed1d
authored
Nov 30, 2009
by
Vincent Povirk
Committed by
Alexandre Julliard
Dec 08, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Take a StorageBaseImpl in insertIntoTree.
parent
9300a92c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
29 deletions
+29
-29
storage32.c
dlls/ole32/storage32.c
+29
-29
No files found.
dlls/ole32/storage32.c
View file @
0425ed1d
...
...
@@ -189,7 +189,7 @@ static HRESULT destroyDirEntry(
DirRef
index
);
static
HRESULT
insertIntoTree
(
StorageImpl
*
This
,
Storage
Base
Impl
*
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
,
Storage
Base
Impl
*
This
,
DirRef
parentStorageIndex
,
DirRef
newEntryIndex
)
{
...
...
@@ -1304,16 +1304,16 @@ static HRESULT insertIntoTree(
/*
* Read the inserted entry
*/
StorageImpl_ReadDirEntry
(
This
,
newEntryIndex
,
&
newEntry
);
Storage
Base
Impl_ReadDirEntry
(
This
,
newEntryIndex
,
&
newEntry
);
/*
* Read the storage entry
*/
StorageImpl_ReadDirEntry
(
This
,
parentStorageIndex
,
&
currentEntry
);
Storage
Base
Impl_ReadDirEntry
(
This
,
parentStorageIndex
,
&
currentEntry
);
if
(
currentEntry
.
dirRootEntry
!=
DIRENTRY_NULL
)
{
...
...
@@ -1332,9 +1332,9 @@ static HRESULT insertIntoTree(
/*
* Read
*/
StorageImpl_ReadDirEntry
(
This
,
currentEntry
.
dirRootEntry
,
&
currentEntry
);
Storage
Base
Impl_ReadDirEntry
(
This
,
currentEntry
.
dirRootEntry
,
&
currentEntry
);
previous
=
currentEntry
.
leftChild
;
next
=
currentEntry
.
rightChild
;
...
...
@@ -1348,17 +1348,17 @@ static HRESULT insertIntoTree(
{
if
(
previous
!=
DIRENTRY_NULL
)
{
StorageImpl_ReadDirEntry
(
This
,
previous
,
&
currentEntry
);
Storage
Base
Impl_ReadDirEntry
(
This
,
previous
,
&
currentEntry
);
current
=
previous
;
}
else
{
currentEntry
.
leftChild
=
newEntryIndex
;
StorageImpl_WriteDirEntry
(
This
,
current
,
&
currentEntry
);
Storage
Base
Impl_WriteDirEntry
(
This
,
current
,
&
currentEntry
);
found
=
1
;
}
}
...
...
@@ -1366,17 +1366,17 @@ static HRESULT insertIntoTree(
{
if
(
next
!=
DIRENTRY_NULL
)
{
StorageImpl_ReadDirEntry
(
This
,
next
,
&
currentEntry
);
Storage
Base
Impl_ReadDirEntry
(
This
,
next
,
&
currentEntry
);
current
=
next
;
}
else
{
currentEntry
.
rightChild
=
newEntryIndex
;
StorageImpl_WriteDirEntry
(
This
,
current
,
&
currentEntry
);
Storage
Base
Impl_WriteDirEntry
(
This
,
current
,
&
currentEntry
);
found
=
1
;
}
}
...
...
@@ -1399,9 +1399,9 @@ static HRESULT insertIntoTree(
* The storage is empty, make the new entry the root of its element tree
*/
currentEntry
.
dirRootEntry
=
newEntryIndex
;
StorageImpl_WriteDirEntry
(
This
,
parentStorageIndex
,
&
currentEntry
);
Storage
Base
Impl_WriteDirEntry
(
This
,
parentStorageIndex
,
&
currentEntry
);
}
return
S_OK
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment