From 6952ccb1bfafd1fba4cd6ac365f2c8d63804737c Mon Sep 17 00:00:00 2001 From: Vincent Povirk Date: Fri, 29 May 2009 16:54:06 -0500 Subject: [PATCH] ole32: don't ignore a failure to delete the old element in CreateStorage --- dlls/ole32/storage32.c | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/dlls/ole32/storage32.c b/dlls/ole32/storage32.c index 2761507..351b759 100644 --- a/dlls/ole32/storage32.c +++ b/dlls/ole32/storage32.c @@ -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"); -- 1.5.4.3