Robert Shearman : ole32:
Fix the return value of the HGLOBAL stream IStream_LockRegion function.
Alexandre Julliard
julliard at wine.codeweavers.com
Mon Sep 11 06:05:10 CDT 2006
Module: wine
Branch: master
Commit: 355903ddc43f2da1af6bab724745ad28057d929a
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=355903ddc43f2da1af6bab724745ad28057d929a
Author: Robert Shearman <rob at codeweavers.com>
Date: Mon Sep 11 11:12:32 2006 +0100
ole32: Fix the return value of the HGLOBAL stream IStream_LockRegion function.
---
dlls/ole32/hglobalstream.c | 2 +-
dlls/ole32/tests/hglobalstream.c | 2 --
2 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/dlls/ole32/hglobalstream.c b/dlls/ole32/hglobalstream.c
index 7c78d68..6d20725 100644
--- a/dlls/ole32/hglobalstream.c
+++ b/dlls/ole32/hglobalstream.c
@@ -563,7 +563,7 @@ static HRESULT WINAPI HGLOBALStreamImpl_
ULARGE_INTEGER cb, /* [in] */
DWORD dwLockType) /* [in] */
{
- return S_OK;
+ return STG_E_INVALIDFUNCTION;
}
/*
diff --git a/dlls/ole32/tests/hglobalstream.c b/dlls/ole32/tests/hglobalstream.c
index df63093..1377741 100644
--- a/dlls/ole32/tests/hglobalstream.c
+++ b/dlls/ole32/tests/hglobalstream.c
@@ -71,9 +71,7 @@ static void test_streamonhglobal(IStream
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");
More information about the wine-cvs
mailing list