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

This commit is contained in:
Vincent Povirk 2010-02-26 10:02:17 -06:00 committed by Alexandre Julliard
parent dba91c0643
commit 24ff704835
1 changed files with 4 additions and 0 deletions

View File

@ -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);