Commit 36d5515d authored by Rob Shearman's avatar Rob Shearman Committed by Alexandre Julliard

ole32: Add a test for StgStreamImpl_SetSize with a non-zero HighPart for the size.

parent bb08a589
......@@ -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");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment