forked from Mirrors/wine-wine
quartz/tests: Fix a crash in test_allocate_surface_helper().
Signed-off-by: Zebediah Figura <z.figura12@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>feature/deterministic
parent
b6f2e9b130
commit
3145b67273
|
@ -2622,18 +2622,22 @@ static void test_allocate_surface_helper(void)
|
||||||
HRESULT hr;
|
HRESULT hr;
|
||||||
ULONG ref;
|
ULONG ref;
|
||||||
|
|
||||||
|
AdjustWindowRect(&rect, WS_OVERLAPPEDWINDOW, FALSE);
|
||||||
|
window = CreateWindowA("static", "quartz_test", WS_OVERLAPPEDWINDOW, 0, 0,
|
||||||
|
rect.right - rect.left, rect.bottom - rect.top, NULL, NULL, NULL, NULL);
|
||||||
|
if (!(device = create_device(window)))
|
||||||
|
{
|
||||||
|
IBaseFilter_Release(filter);
|
||||||
|
DestroyWindow(window);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
IBaseFilter_QueryInterface(filter, &IID_IVMRSurfaceAllocatorNotify9, (void **)¬ify);
|
IBaseFilter_QueryInterface(filter, &IID_IVMRSurfaceAllocatorNotify9, (void **)¬ify);
|
||||||
|
|
||||||
count = 2;
|
count = 2;
|
||||||
hr = IVMRSurfaceAllocatorNotify9_AllocateSurfaceHelper(notify, &info, &count, surfaces);
|
hr = IVMRSurfaceAllocatorNotify9_AllocateSurfaceHelper(notify, &info, &count, surfaces);
|
||||||
todo_wine ok(hr == E_FAIL, "Got hr %#x.\n", hr);
|
todo_wine ok(hr == E_FAIL, "Got hr %#x.\n", hr);
|
||||||
|
|
||||||
AdjustWindowRect(&rect, WS_OVERLAPPEDWINDOW, FALSE);
|
|
||||||
window = CreateWindowA("static", "quartz_test", WS_OVERLAPPEDWINDOW, 0, 0,
|
|
||||||
rect.right - rect.left, rect.bottom - rect.top, NULL, NULL, NULL, NULL);
|
|
||||||
if (!(device = create_device(window)))
|
|
||||||
goto out;
|
|
||||||
|
|
||||||
hr = IVMRSurfaceAllocatorNotify9_SetD3DDevice(notify, device, MonitorFromWindow(window, MONITOR_DEFAULTTOPRIMARY));
|
hr = IVMRSurfaceAllocatorNotify9_SetD3DDevice(notify, device, MonitorFromWindow(window, MONITOR_DEFAULTTOPRIMARY));
|
||||||
if (hr == E_NOINTERFACE)
|
if (hr == E_NOINTERFACE)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue