ole32: IStorage_Revert has no effect for non-transacted storages.

This commit is contained in:
Vincent Povirk 2010-01-24 13:11:51 -06:00 committed by Alexandre Julliard
parent ec8f002919
commit da250c9afe
2 changed files with 3 additions and 3 deletions

View File

@ -1796,8 +1796,8 @@ static HRESULT WINAPI StorageImpl_Commit(
static HRESULT WINAPI StorageImpl_Revert( static HRESULT WINAPI StorageImpl_Revert(
IStorage* iface) IStorage* iface)
{ {
FIXME("(%p): stub\n", iface); TRACE("(%p)\n", iface);
return E_NOTIMPL; return S_OK;
} }
/************************************************************************* /*************************************************************************

View File

@ -1384,7 +1384,7 @@ static void test_revert(void)
ok(r==S_OK, "IStorage->CreateStream failed\n"); ok(r==S_OK, "IStorage->CreateStream failed\n");
r = IStorage_Revert(stg); r = IStorage_Revert(stg);
todo_wine ok(r==S_OK, "IStorage->Revert failed %08x\n", r); ok(r==S_OK, "IStorage->Revert failed %08x\n", r);
r = IStream_Write(stm, "this works\n", 11, NULL); r = IStream_Write(stm, "this works\n", 11, NULL);
ok(r==S_OK, "IStream_Write should succeed %08x\n", r); ok(r==S_OK, "IStream_Write should succeed %08x\n", r);