ole32: Fix the IStream_SetSize function for HGLOBAL streams to ignore HighPart.

This commit is contained in:
Robert Shearman 2006-09-11 11:13:34 +01:00 committed by Alexandre Julliard
parent 83f13d6b99
commit bfc1bdc3bb
2 changed files with 1 additions and 5 deletions

View File

@ -414,10 +414,8 @@ static HRESULT WINAPI HGLOBALStreamImpl_SetSize(
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;

View File

@ -60,9 +60,7 @@ static void test_streamonhglobal(IStream *pStream)
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");