Robert Shearman : ole32:
Add a storage test for reading and writing of streams that have
Alexandre Julliard
julliard at wine.codeweavers.com
Fri May 5 15:24:10 CDT 2006
Module: wine
Branch: refs/heads/master
Commit: 8d30c1d08ea8e8106a2a7f9856ba014376af67d7
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=8d30c1d08ea8e8106a2a7f9856ba014376af67d7
Author: Robert Shearman <rob at codeweavers.com>
Date: Wed May 3 14:47:09 2006 +0100
ole32: Add a storage test for reading and writing of streams that have
had their parent storage released.
---
dlls/ole32/tests/storage32.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/dlls/ole32/tests/storage32.c b/dlls/ole32/tests/storage32.c
index e1f40f2..e2f9d8a 100644
--- a/dlls/ole32/tests/storage32.c
+++ b/dlls/ole32/tests/storage32.c
@@ -634,6 +634,7 @@ static void test_storage_refcount(void)
LARGE_INTEGER pos;
ULARGE_INTEGER upos;
STATSTG stat;
+ char buffer[10];
if(!GetTempFileNameW(szDot, szPrefix, 0, filename))
return;
@@ -659,6 +660,12 @@ static void test_storage_refcount(void)
r = IStream_Stat( stm, &stat, STATFLAG_DEFAULT );
ok (r == STG_E_REVERTED, "stat should fail\n");
+ r = IStream_Write( stm, "Test string", strlen("Test string"), NULL);
+ ok (r == STG_E_REVERTED, "IStream_Write should return STG_E_REVERTED instead of 0x%08lx\n", r);
+
+ r = IStream_Read( stm, buffer, sizeof(buffer), NULL);
+ ok (r == STG_E_REVERTED, "IStream_Read should return STG_E_REVERTED instead of 0x%08lx\n", r);
+
r = IStream_Release(stm);
ok (r == 0, "stream not released\n");
More information about the wine-cvs
mailing list