[PATCH v2 1/5] ole32/tests: Update IStream_SetSize with large size test result.
Rémi Bernon
wine at gitlab.winehq.org
Thu Jun 9 07:15:58 CDT 2022
From: Rémi Bernon <rbernon at codeweavers.com>
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: Rémi Bernon <rbernon at codeweavers.com>
---
dlls/ole32/tests/hglobalstream.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/dlls/ole32/tests/hglobalstream.c b/dlls/ole32/tests/hglobalstream.c
index 237bcca9251..8310800a5c7 100644
--- a/dlls/ole32/tests/hglobalstream.c
+++ b/dlls/ole32/tests/hglobalstream.c
@@ -294,10 +294,9 @@ static void test_streamonhglobal(void)
/* test OOM condition */
ull.u.HighPart = -1;
- ull.u.LowPart = -1;
+ ull.u.LowPart = 0;
hr = IStream_SetSize(pStream, ull);
- ok(hr == E_OUTOFMEMORY || broken(hr == S_OK), /* win9x */
- "IStream_SetSize with large size should have returned E_OUTOFMEMORY instead of 0x%08lx\n", hr);
+ ok(hr == S_OK, "IStream_SetSize with large size should have returned S_OK instead of 0x%08lx\n", hr);
IStream_Release(pStream);
}
--
GitLab
https://gitlab.winehq.org/wine/wine/-/merge_requests/201
More information about the wine-devel
mailing list