Commit 98bd3ef8 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

ddraw/tests: Use correct COM macros in a couple of places.

parent 4d515c07
......@@ -784,15 +784,15 @@ static void test_surface_interface_mismatch(void)
cleanup:
if (viewport)
{
IDirect3DDevice2_DeleteViewport(device, viewport);
IDirect3DViewport2_Release(viewport);
IDirect3DDevice_DeleteViewport(device, viewport);
IDirect3DViewport_Release(viewport);
}
if (background) IDirect3DMaterial2_Release(background);
if (background) IDirect3DMaterial_Release(background);
if (surface3) IDirectDrawSurface3_Release(surface3);
if (surface) IDirectDrawSurface7_Release(surface);
if (device) IDirect3DDevice2_Release(device);
if (d3d) IDirect3D7_Release(d3d);
if (ddraw) IDirectDraw7_Release(ddraw);
if (surface) IDirectDrawSurface_Release(surface);
if (device) IDirect3DDevice_Release(device);
if (d3d) IDirect3D_Release(d3d);
if (ddraw) IDirectDraw_Release(ddraw);
DestroyWindow(window);
}
......
......@@ -814,10 +814,10 @@ cleanup:
}
if (background) IDirect3DMaterial2_Release(background);
if (surface3) IDirectDrawSurface3_Release(surface3);
if (surface) IDirectDrawSurface7_Release(surface);
if (surface) IDirectDrawSurface_Release(surface);
if (device) IDirect3DDevice2_Release(device);
if (d3d) IDirect3D7_Release(d3d);
if (ddraw) IDirectDraw7_Release(ddraw);
if (d3d) IDirect3D2_Release(d3d);
if (ddraw) IDirectDraw2_Release(ddraw);
DestroyWindow(window);
}
......
......@@ -976,8 +976,8 @@ static void test_surface_interface_mismatch(void)
cleanup:
if (viewport)
{
IDirect3DDevice2_DeleteViewport(device, viewport);
IDirect3DViewport2_Release(viewport);
IDirect3DDevice3_DeleteViewport(device, viewport);
IDirect3DViewport3_Release(viewport);
}
if (surface3) IDirectDrawSurface3_Release(surface3);
if (surface) IDirectDrawSurface4_Release(surface);
......
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