From 24ff70483519c22b201027a9c758d318d92a1ece Mon Sep 17 00:00:00 2001 From: Vincent Povirk Date: Fri, 26 Feb 2010 10:02:17 -0600 Subject: [PATCH] ole32: Clear the sibling links when reinserting a renamed element. --- dlls/ole32/storage32.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dlls/ole32/storage32.c b/dlls/ole32/storage32.c index 88e05244fdb..837365bdb9d 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);