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

ole32: Don't ignore a failure to delete the old element in CreateStorage.

parent e21adbf4
......@@ -1232,7 +1232,11 @@ static HRESULT WINAPI StorageImpl_CreateStorage(
*/
if (STGM_CREATE_MODE(grfMode) == STGM_CREATE &&
STGM_ACCESS_MODE(This->base.openFlags) != STGM_READ)
IStorage_DestroyElement(iface, pwcsName);
{
hr = IStorage_DestroyElement(iface, pwcsName);
if (FAILED(hr))
return hr;
}
else
{
WARN("file already exists\n");
......
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