ole32: Clear the sibling links when reinserting a renamed element.
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 @@
/* 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);