Vincent Povirk : ole32: Clear the sibling links when reinserting a renamed element.
Alexandre Julliard
julliard at winehq.org
Tue Mar 2 10:32:35 CST 2010
Module: wine
Branch: master
Commit: 24ff70483519c22b201027a9c758d318d92a1ece
URL: http://source.winehq.org/git/wine.git/?a=commit;h=24ff70483519c22b201027a9c758d318d92a1ece
Author: Vincent Povirk <vincent at codeweavers.com>
Date: Fri Feb 26 10:02:17 2010 -0600
ole32: Clear the sibling links when reinserting a renamed element.
---
dlls/ole32/storage32.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/dlls/ole32/storage32.c b/dlls/ole32/storage32.c
index 88e0524..837365b 100644
--- a/dlls/ole32/storage32.c
+++ b/dlls/ole32/storage32.c
@@ -797,6 +797,10 @@ static HRESULT WINAPI StorageBaseImpl_RenameElement(
/* Change the name of the element */
strcpyW(currentEntry.name, pwcsNewName);
+ /* Delete any sibling links */
+ currentEntry.leftChild = DIRENTRY_NULL;
+ currentEntry.rightChild = DIRENTRY_NULL;
+
StorageBaseImpl_WriteDirEntry(This, currentEntryRef,
¤tEntry);
More information about the wine-cvs
mailing list