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
fd993b7d
Commit
fd993b7d
authored
Oct 28, 2009
by
Vincent Povirk
Committed by
Alexandre Julliard
Oct 30, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Remove directory entries from the tree before we free them.
The directory entry should still be valid as long as it's in the tree.
parent
07b73568
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
23 deletions
+9
-23
storage32.c
dlls/ole32/storage32.c
+9
-23
No files found.
dlls/ole32/storage32.c
View file @
fd993b7d
...
@@ -1817,6 +1817,15 @@ static HRESULT WINAPI StorageImpl_DestroyElement(
...
@@ -1817,6 +1817,15 @@ static HRESULT WINAPI StorageImpl_DestroyElement(
parentPropertyId
,
parentPropertyId
,
typeOfRelation
);
typeOfRelation
);
/*
* Invalidate the property by zeroing its name member.
*/
propertyToDelete
.
sizeOfNameString
=
0
;
StorageImpl_WriteProperty
(
This
->
base
.
ancestorStorage
,
foundPropertyIndexToDelete
,
&
propertyToDelete
);
return
hr
;
return
hr
;
}
}
...
@@ -1936,15 +1945,6 @@ static HRESULT deleteStorageProperty(
...
@@ -1936,15 +1945,6 @@ static HRESULT deleteStorageProperty(
}
while
((
hr
==
S_OK
)
&&
(
destroyHr
==
S_OK
));
}
while
((
hr
==
S_OK
)
&&
(
destroyHr
==
S_OK
));
/*
* Invalidate the property by zeroing its name member.
*/
propertyToDelete
.
sizeOfNameString
=
0
;
StorageImpl_WriteProperty
(
parentStorage
->
base
.
ancestorStorage
,
indexOfPropertyToDelete
,
&
propertyToDelete
);
IStorage_Release
(
childStorage
);
IStorage_Release
(
childStorage
);
IEnumSTATSTG_Release
(
elements
);
IEnumSTATSTG_Release
(
elements
);
...
@@ -1993,20 +1993,6 @@ static HRESULT deleteStreamProperty(
...
@@ -1993,20 +1993,6 @@ static HRESULT deleteStreamProperty(
*/
*/
IStream_Release
(
pis
);
IStream_Release
(
pis
);
/*
* Invalidate the property by zeroing its name member.
*/
propertyToDelete
.
sizeOfNameString
=
0
;
/*
* Here we should re-read the property so we get the updated pointer
* but since we are here to zap it, I don't do it...
*/
StorageImpl_WriteProperty
(
parentStorage
->
base
.
ancestorStorage
,
indexOfPropertyToDelete
,
&
propertyToDelete
);
return
S_OK
;
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