From 36d5515d911486349e77683f1fda1e22b6248dc6 Mon Sep 17 00:00:00 2001 From: Rob Shearman Date: Mon, 19 Mar 2007 14:53:00 +0000 Subject: [PATCH] ole32: Add a test for StgStreamImpl_SetSize with a non-zero HighPart for the size. --- dlls/ole32/tests/storage32.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dlls/ole32/tests/storage32.c b/dlls/ole32/tests/storage32.c index 710aa450459..d96a7ed401b 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");