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

This commit is contained in:
Henri Verbeet 2012-02-02 19:26:37 +01:00 committed by Alexandre Julliard
parent 4d515c07f5
commit 98bd3ef803
3 changed files with 12 additions and 12 deletions

View File

@ -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);
}

View File

@ -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);
}

View File

@ -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);