Commit 24ff7048 authored by Vincent Povirk's avatar Vincent Povirk Committed by Alexandre Julliard

ole32: Clear the sibling links when reinserting a renamed element.

parent dba91c06
......@@ -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,
&currentEntry);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment