Module: wine Branch: master Commit: 36d5515d911486349e77683f1fda1e22b6248dc6 URL: http://source.winehq.org/git/wine.git/?a=commit;h=36d5515d911486349e77683f1f...
Author: Rob Shearman rob@codeweavers.com Date: Mon Mar 19 14:53:00 2007 +0000
ole32: Add a test for StgStreamImpl_SetSize with a non-zero HighPart for the size.
---
dlls/ole32/tests/storage32.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/dlls/ole32/tests/storage32.c b/dlls/ole32/tests/storage32.c index 710aa45..d96a7ed 100644 --- a/dlls/ole32/tests/storage32.c +++ b/dlls/ole32/tests/storage32.c @@ -308,6 +308,9 @@ static void test_storage_stream(void) ok(r==S_OK, "failed to seek stream\n"); r = IStream_SetSize(stm,p); ok(r==S_OK, "failed to set pos\n"); + p.u.HighPart = 1; + r = IStream_SetSize(stm,p); + ok(r==STG_E_INVALIDFUNCTION, "setting to invalid pos should fail with STG_E_INVALIDFUNCTION instead of error 0x%08x\n", r); pos.QuadPart = 10; r = IStream_Seek(stm, pos, STREAM_SEEK_SET, &p ); ok(r==S_OK, "failed to seek stream\n");