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:
parent
51cca0b118
commit
33a720b7d7
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue