ole32: Fix the return value of the HGLOBAL stream IStream_LockRegion function.
This commit is contained in:
parent
a552c2ead7
commit
355903ddc4
|
@ -563,7 +563,7 @@ static HRESULT WINAPI HGLOBALStreamImpl_LockRegion(
|
|||
ULARGE_INTEGER cb, /* [in] */
|
||||
DWORD dwLockType) /* [in] */
|
||||
{
|
||||
return S_OK;
|
||||
return STG_E_INVALIDFUNCTION;
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
@ -71,9 +71,7 @@ static void test_streamonhglobal(IStream *pStream)
|
|||
ok_ole_success(hr, "IStream_Revert");
|
||||
|
||||
hr = IStream_LockRegion(pStream, ull, ull, LOCK_WRITE);
|
||||
todo_wine {
|
||||
ok(hr == STG_E_INVALIDFUNCTION, "IStream_LockRegion should have returned STG_E_INVALIDFUNCTION instead of 0x%08lx\n", hr);
|
||||
}
|
||||
|
||||
hr = IStream_Stat(pStream, &statstg, STATFLAG_DEFAULT);
|
||||
ok_ole_success(hr, "IStream_Stat");
|
||||
|
|
Loading…
Reference in New Issue