Rémi Bernon : ole32/tests: Update IStream_SetSize with large size test result.

Alexandre Julliard julliard at winehq.org
Thu Jun 9 16:28:34 CDT 2022


Module: wine
Branch: master
Commit: 15d01a2a12d1936f47749fd25988f2c8614cdbe9
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=15d01a2a12d1936f47749fd25988f2c8614cdbe9

Author: Rémi Bernon <rbernon at codeweavers.com>
Date:   Tue Jun  7 20:22:23 2022 +0200

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: 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);
 }




More information about the wine-cvs mailing list