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
f43e013f
Commit
f43e013f
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 removeFromTree.
parent
0425ed1d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
13 deletions
+13
-13
storage32.c
dlls/ole32/storage32.c
+13
-13
No files found.
dlls/ole32/storage32.c
View file @
f43e013f
...
...
@@ -176,7 +176,7 @@ static HRESULT deleteStreamContents(
DirEntry
entryDataToDelete
);
static
HRESULT
removeFromTree
(
StorageImpl
*
This
,
Storage
Base
Impl
*
This
,
DirRef
parentStorageIndex
,
DirRef
deletedIndex
);
...
...
@@ -204,7 +204,7 @@ static DirRef findElement(
DirEntry
*
data
);
static
HRESULT
findTreeParent
(
StorageImpl
*
storage
,
Storage
Base
Impl
*
storage
,
DirRef
storageEntry
,
const
OLECHAR
*
childName
,
DirEntry
*
parentData
,
...
...
@@ -769,7 +769,7 @@ static HRESULT WINAPI StorageBaseImpl_RenameElement(
}
/* Remove the element from its current position in the tree */
removeFromTree
(
This
->
ancestorStorage
,
This
->
storageDirEntry
,
removeFromTree
(
This
,
This
->
storageDirEntry
,
currentEntryRef
);
/* Change the name of the element */
...
...
@@ -1454,7 +1454,7 @@ static DirRef findElement(StorageImpl *storage, DirRef storageEntry,
* If there is no such element, find a place where it could be inserted and
* return STG_E_FILENOTFOUND.
*/
static
HRESULT
findTreeParent
(
StorageImpl
*
storage
,
DirRef
storageEntry
,
static
HRESULT
findTreeParent
(
Storage
Base
Impl
*
storage
,
DirRef
storageEntry
,
const
OLECHAR
*
childName
,
DirEntry
*
parentData
,
DirRef
*
parentEntry
,
ULONG
*
relation
)
{
...
...
@@ -1462,7 +1462,7 @@ static HRESULT findTreeParent(StorageImpl *storage, DirRef storageEntry,
DirEntry
childData
;
/* Read the storage entry to find the root of the tree. */
StorageImpl_ReadDirEntry
(
storage
,
storageEntry
,
parentData
);
Storage
Base
Impl_ReadDirEntry
(
storage
,
storageEntry
,
parentData
);
*
parentEntry
=
storageEntry
;
*
relation
=
DIRENTRY_RELATION_DIR
;
...
...
@@ -1473,7 +1473,7 @@ static HRESULT findTreeParent(StorageImpl *storage, DirRef storageEntry,
{
LONG
cmp
;
StorageImpl_ReadDirEntry
(
storage
,
childEntry
,
&
childData
);
Storage
Base
Impl_ReadDirEntry
(
storage
,
childEntry
,
&
childData
);
cmp
=
entryNameCmp
(
childName
,
childData
.
name
);
...
...
@@ -1812,7 +1812,7 @@ static HRESULT WINAPI StorageBaseImpl_DestroyElement(
* Remove the entry from its parent storage
*/
hr
=
removeFromTree
(
This
->
ancestorStorage
,
This
,
This
->
storageDirEntry
,
entryToDeleteRef
);
...
...
@@ -2053,7 +2053,7 @@ static void setEntryLink(DirEntry *entry, ULONG relation, DirRef new_target)
* freeing any resources attached to it.
*/
static
HRESULT
removeFromTree
(
StorageImpl
*
This
,
Storage
Base
Impl
*
This
,
DirRef
parentStorageIndex
,
DirRef
deletedIndex
)
{
...
...
@@ -2063,7 +2063,7 @@ static HRESULT removeFromTree(
DirRef
parentEntryRef
;
ULONG
typeOfRelation
;
hr
=
StorageImpl_ReadDirEntry
(
This
,
deletedIndex
,
&
entryToDelete
);
hr
=
Storage
Base
Impl_ReadDirEntry
(
This
,
deletedIndex
,
&
entryToDelete
);
if
(
hr
!=
S_OK
)
return
hr
;
...
...
@@ -2084,7 +2084,7 @@ static HRESULT removeFromTree(
*/
setEntryLink
(
&
parentEntry
,
typeOfRelation
,
entryToDelete
.
leftChild
);
hr
=
StorageImpl_WriteDirEntry
(
hr
=
Storage
Base
Impl_WriteDirEntry
(
This
,
parentEntryRef
,
&
parentEntry
);
...
...
@@ -2105,7 +2105,7 @@ static HRESULT removeFromTree(
do
{
hr
=
StorageImpl_ReadDirEntry
(
hr
=
Storage
Base
Impl_ReadDirEntry
(
This
,
newRightChildParent
,
&
newRightChildParentEntry
);
...
...
@@ -2120,7 +2120,7 @@ static HRESULT removeFromTree(
newRightChildParentEntry
.
rightChild
=
entryToDelete
.
rightChild
;
hr
=
StorageImpl_WriteDirEntry
(
hr
=
Storage
Base
Impl_WriteDirEntry
(
This
,
newRightChildParent
,
&
newRightChildParentEntry
);
...
...
@@ -2137,7 +2137,7 @@ static HRESULT removeFromTree(
*/
setEntryLink
(
&
parentEntry
,
typeOfRelation
,
entryToDelete
.
rightChild
);
hr
=
StorageImpl_WriteDirEntry
(
hr
=
Storage
Base
Impl_WriteDirEntry
(
This
,
parentEntryRef
,
&
parentEntry
);
...
...
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