Vincent Povirk : ole32: Clear the sibling links when reinserting a renamed element.
Module: wine Branch: master Commit: 24ff70483519c22b201027a9c758d318d92a1ece URL: http://source.winehq.org/git/wine.git/?a=commit;h=24ff70483519c22b201027a9c7... Author: Vincent Povirk <vincent(a)codeweavers.com> Date: Fri Feb 26 10:02:17 2010 -0600 ole32: Clear the sibling links when reinserting a renamed element. --- dlls/ole32/storage32.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/dlls/ole32/storage32.c b/dlls/ole32/storage32.c index 88e0524..837365b 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);
participants (1)
-
Alexandre Julliard