From: Matteo Bruni mbruni@codeweavers.com
--- dlls/quartz/tests/vmr7.c | 12 ++++++++++++ 1 file changed, 12 insertions(+)
diff --git a/dlls/quartz/tests/vmr7.c b/dlls/quartz/tests/vmr7.c index 9502a994576..3d56bc09a39 100644 --- a/dlls/quartz/tests/vmr7.c +++ b/dlls/quartz/tests/vmr7.c @@ -3870,6 +3870,18 @@ static void test_default_presenter_allocate(void) ref = IDirectDrawSurface7_Release(frontbuffer); ok(!ref, "Got outstanding refcount %ld.\n", ref);
+ info.lpHdr->biCompression = BI_RGB; + frontbuffer = NULL; + hr = IVMRSurfaceAllocator_AllocateSurface(allocator, 0, &info, &count, &frontbuffer); + expect_hr = tests[i].depth == 32 ? DD_OK : E_FAIL; + ok(hr == expect_hr, "Got hr %#lx.\n", hr); + ok(!!frontbuffer == (hr == DD_OK), "Got frontbuffer %p.\n", frontbuffer); + if (frontbuffer) + { + hr = IVMRSurfaceAllocator_FreeSurface(allocator, 0); + ok(hr == S_OK, "Got hr %#lx.\n", hr); + } + winetest_pop_context(); }