Huw Davies : ole32: InitNew() should fail if there is a current storage.

Alexandre Julliard julliard at winehq.org
Tue Jun 6 15:23:33 CDT 2017


Module: wine
Branch: master
Commit: 33a720b7d7af2eace8a8b3844a5c63dd1042e2cf
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=33a720b7d7af2eace8a8b3844a5c63dd1042e2cf

Author: Huw Davies <huw at codeweavers.com>
Date:   Tue Jun  6 11:46:53 2017 +0100

ole32: InitNew() should fail if there is a current storage.

Signed-off-by: Huw Davies <huw at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 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 9809c7a..ecae89d 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;
 




More information about the wine-cvs mailing list