Commit 6afe24c3 authored by Vincent Povirk's avatar Vincent Povirk Committed by Alexandre Julliard

ole32: Remove an unnecessary special case in StorageBaseImpl_CopyTo.

Opening a storage when it has already been opened now fails with STG_E_ACCESSDENIED. If we attempt to copy a storage to its own child, this will happen during the copy.
parent 0ad48797
......@@ -1674,16 +1674,6 @@ static HRESULT WINAPI StorageBaseImpl_CopyTo(
goto cleanup;
/*
* Check if destination storage is not a child of the source
* storage, which will cause an infinite loop
*/
if (pstgChild == pstgDest)
{
hr = STG_E_ACCESSDENIED;
goto cleanup;
}
/*
* create a new storage in destination storage
*/
hr = IStorage_CreateStorage( pstgDest, curElement.pwcsName,
......
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