Module: wine Branch: master Commit: bfc1bdc3bbf764ebb3da8af76afe7ded371cec62 URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=bfc1bdc3bbf764ebb3da8af7...
Author: Robert Shearman rob@codeweavers.com Date: Mon Sep 11 11:13:34 2006 +0100
ole32: Fix the IStream_SetSize function for HGLOBAL streams to ignore HighPart.
---
dlls/ole32/hglobalstream.c | 4 +--- dlls/ole32/tests/hglobalstream.c | 2 -- 2 files changed, 1 insertions(+), 5 deletions(-)
diff --git a/dlls/ole32/hglobalstream.c b/dlls/ole32/hglobalstream.c index 6d20725..e24fd9d 100644 --- a/dlls/ole32/hglobalstream.c +++ b/dlls/ole32/hglobalstream.c @@ -414,10 +414,8 @@ static HRESULT WINAPI HGLOBALStreamImpl_ TRACE("(%p, %ld)\n", iface, libNewSize.u.LowPart);
/* - * As documented. + * HighPart is ignored as shown in tests */ - if (libNewSize.u.HighPart != 0) - return STG_E_INVALIDFUNCTION;
if (This->streamSize.u.LowPart == libNewSize.u.LowPart) return S_OK; diff --git a/dlls/ole32/tests/hglobalstream.c b/dlls/ole32/tests/hglobalstream.c index 1377741..82de590 100644 --- a/dlls/ole32/tests/hglobalstream.c +++ b/dlls/ole32/tests/hglobalstream.c @@ -60,9 +60,7 @@ static void test_streamonhglobal(IStream ull.HighPart = -1; ull.LowPart = 0; hr = IStream_SetSize(pStream, ull); - todo_wine { ok_ole_success(hr, "IStream_SetSize"); - }
hr = IStream_Commit(pStream, STGC_DEFAULT); ok_ole_success(hr, "IStream_Commit");