Commit 15d01a2a authored by Rémi Bernon's avatar Rémi Bernon Committed by Alexandre Julliard

ole32/tests: Update IStream_SetSize with large size test result.

The high part is ignored, and OOM error is only returned if there's not enough memory available, not because of GlobalReAlloc specific behavior. Signed-off-by: 's avatarRémi Bernon <rbernon@codeweavers.com>
parent 577258a9
...@@ -294,10 +294,9 @@ static void test_streamonhglobal(void) ...@@ -294,10 +294,9 @@ static void test_streamonhglobal(void)
/* test OOM condition */ /* test OOM condition */
ull.u.HighPart = -1; ull.u.HighPart = -1;
ull.u.LowPart = -1; ull.u.LowPart = 0;
hr = IStream_SetSize(pStream, ull); hr = IStream_SetSize(pStream, ull);
ok(hr == E_OUTOFMEMORY || broken(hr == S_OK), /* win9x */ ok(hr == S_OK, "IStream_SetSize with large size should have returned S_OK instead of 0x%08lx\n", hr);
"IStream_SetSize with large size should have returned E_OUTOFMEMORY instead of 0x%08lx\n", hr);
IStream_Release(pStream); IStream_Release(pStream);
} }
......
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