From d45bf9834388c8ff571043b990f2a26514096378 Mon Sep 17 00:00:00 2001 From: Vincent Povirk Date: Fri, 16 Jul 2010 14:19:28 -0500 Subject: [PATCH] oleaut32: Add test for dibs vs. ddbs in IPicture. --- dlls/oleaut32/tests/olepicture.c | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/dlls/oleaut32/tests/olepicture.c b/dlls/oleaut32/tests/olepicture.c index ab4fb48..2259437 100644 --- a/dlls/oleaut32/tests/olepicture.c +++ b/dlls/oleaut32/tests/olepicture.c @@ -216,6 +216,13 @@ test_pic_with_stream(LPSTREAM stream, unsigned int imgsize) ok(hres == S_OK,"IPicture_get_Handle does not return S_OK, but 0x%08x\n", hres); ok(handle != 0, "IPicture_get_Handle returns a NULL handle, but it should be non NULL\n"); + if (handle) + { + BITMAP bmp; + GetObject((HGDIOBJ)handle, sizeof(BITMAP), &bmp); + todo_wine ok(bmp.bmBits != 0, "not a dib\n"); + } + width = 0; hres = IPicture_get_Width (pic, &width); ok(hres == S_OK,"IPicture_get_Width does not return S_OK, but 0x%08x\n", hres); -- 1.7.0.4