ole32: Clear the sibling links when reinserting a renamed element.
This commit is contained in:
parent
dba91c0643
commit
24ff704835
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue