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.
This commit is contained in:
parent
0ad48797f8
commit
6afe24c38d
|
@ -1673,16 +1673,6 @@ static HRESULT WINAPI StorageBaseImpl_CopyTo(
|
||||||
if (hr != S_OK)
|
if (hr != S_OK)
|
||||||
goto cleanup;
|
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
|
* create a new storage in destination storage
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue