[PATCH 6/7] ole32: InitNew() should fail if there is a current storage.
Huw Davies
huw at codeweavers.com
Tue Jun 6 05:46:53 CDT 2017
Signed-off-by: Huw Davies <huw at codeweavers.com>
---
dlls/ole32/datacache.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/ole32/datacache.c b/dlls/ole32/datacache.c
index 019995abe4..7afe570fe9 100644
--- a/dlls/ole32/datacache.c
+++ b/dlls/ole32/datacache.c
@@ -1464,7 +1464,7 @@ static HRESULT WINAPI DataCache_InitNew(
TRACE("(%p, %p)\n", iface, pStg);
if (This->presentationStorage != NULL)
- IStorage_Release(This->presentationStorage);
+ return CO_E_ALREADYINITIALIZED;
This->presentationStorage = pStg;
--
2.12.0
More information about the wine-patches
mailing list