ole32: Fix the return value of the HGLOBAL stream IStream_LockRegion function.

This commit is contained in:
Robert Shearman 2006-09-11 11:12:32 +01:00 committed by Alexandre Julliard
parent a552c2ead7
commit 355903ddc4
2 changed files with 1 additions and 3 deletions

View File

@ -563,7 +563,7 @@ static HRESULT WINAPI HGLOBALStreamImpl_LockRegion(
ULARGE_INTEGER cb, /* [in] */
DWORD dwLockType) /* [in] */
{
return S_OK;
return STG_E_INVALIDFUNCTION;
}
/*

View File

@ -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");