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