Module: wine Branch: master Commit: 2b74e774f94dd9dd66447aaf1de96915deb3981a URL: http://source.winehq.org/git/wine.git/?a=commit;h=2b74e774f94dd9dd66447aaf1d...
Author: Rob Shearman robertshearman@gmail.com Date: Fri Dec 4 15:08:51 2009 +0000
ole32: Add tests for HGLOBAL stream ignoring the HighPart of the offset for seeks.
---
dlls/ole32/tests/hglobalstream.c | 17 +++++++++++++++++ 1 files changed, 17 insertions(+), 0 deletions(-)
diff --git a/dlls/ole32/tests/hglobalstream.c b/dlls/ole32/tests/hglobalstream.c index cae13ed..4fee612 100644 --- a/dlls/ole32/tests/hglobalstream.c +++ b/dlls/ole32/tests/hglobalstream.c @@ -75,6 +75,23 @@ static void test_streamonhglobal(IStream *pStream) hr = IStream_SetSize(pStream, ull); ok_ole_success(hr, "IStream_SetSize");
+ /* ignores HighPart */ + ll.u.HighPart = -1; + ll.u.LowPart = 0; + hr = IStream_Seek(pStream, ll, STREAM_SEEK_SET, &ull); + todo_wine + ok_ole_success(hr, "IStream_Seek"); + ok(ull.u.LowPart == 0, "should have set LowPart to 0 instead of %d\n", ull.u.LowPart); + todo_wine + ok(ull.u.HighPart == 0, "should have set HighPart to 0 instead of %d\n", ull.u.HighPart); + + /* ignores HighPart */ + ll.u.HighPart = -1; + ll.u.LowPart = 0; + hr = IStream_Seek(pStream, ll, STREAM_SEEK_CUR, NULL); + todo_wine + ok_ole_success(hr, "IStream_Seek"); + hr = IStream_Commit(pStream, STGC_DEFAULT); ok_ole_success(hr, "IStream_Commit");