Commit d868f85e authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

d3drm/tests: Properly initialise context.obj in test_Viewport().

parent 484c9ae4
......@@ -1372,6 +1372,9 @@ static void test_Viewport(void)
ok(hr == D3DRM_OK, "expected D3DRM_OK (hr = %x)\n", hr);
context.called = 0;
hr = IDirect3DRMViewport_QueryInterface(viewport, &IID_IDirect3DRMObject, (void**)&context.obj);
ok(hr == D3DRM_OK, "expected D3DRM_OK (hr = %x)\n", hr);
IDirect3DRMObject_Release(context.obj);
IDirect3DRMViewport_Release(viewport);
ok(context.called == 2, "got %d, expected 2\n", context.called);
......@@ -1436,6 +1439,9 @@ static void test_Viewport(void)
ok(hr == D3DRM_OK, "expected D3DRM_OK (hr = %x)\n", hr);
context.called = 0;
hr = IDirect3DRMViewport2_QueryInterface(viewport2, &IID_IDirect3DRMObject, (void**)&context.obj);
ok(hr == D3DRM_OK, "expected D3DRM_OK (hr = %x)\n", hr);
IDirect3DRMObject_Release(context.obj);
IDirect3DRMViewport2_Release(viewport2);
ok(context.called == 2, "got %d, expected 2\n", context.called);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment