oleaut32: Add test for dibs vs. ddbs in IPicture.

This commit is contained in:
Vincent Povirk 2010-07-16 14:19:28 -05:00 committed by Alexandre Julliard
parent 4dfcf843aa
commit 6799aaf34a
1 changed files with 7 additions and 0 deletions

View File

@ -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(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"); 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; width = 0;
hres = IPicture_get_Width (pic, &width); hres = IPicture_get_Width (pic, &width);
ok(hres == S_OK,"IPicture_get_Width does not return S_OK, but 0x%08x\n", hres); ok(hres == S_OK,"IPicture_get_Width does not return S_OK, but 0x%08x\n", hres);