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

Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Huw Davies 2017-06-06 11:46:53 +01:00 committed by Alexandre Julliard
parent 51cca0b118
commit 33a720b7d7
1 changed files with 1 additions and 1 deletions

View File

@ -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;