ole32: Fix the IStream_SetSize function for HGLOBAL streams to ignore HighPart.
This commit is contained in:
parent
83f13d6b99
commit
bfc1bdc3bb
|
@ -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;
|
||||
|
|
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue