d3d8/tests: Test the return value of CreateVolumeTexture (PVS-Studio)

Michael Stefaniuc mstefani at redhat.de
Sat Feb 21 11:26:14 CST 2015


---
 dlls/d3d8/tests/device.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/dlls/d3d8/tests/device.c b/dlls/d3d8/tests/device.c
index b75513e..e06b1a3 100644
--- a/dlls/d3d8/tests/device.c
+++ b/dlls/d3d8/tests/device.c
@@ -6125,6 +6125,7 @@ static void test_volume_blocks(void)
             hr = IDirect3DDevice8_CreateVolumeTexture(device, formats[i].block_width, formats[i].block_height,
                     2, 2, 0, formats[i].fmt, D3DPOOL_SCRATCH, &texture);
 
+            ok(SUCCEEDED(hr), "CreateVolumeTexture failed, hr %#x.\n", hr);
             hr = IDirect3DVolumeTexture8_LockBox(texture, 1, &locked_box, NULL, 0);
             ok(SUCCEEDED(hr), "Failed to lock volume texture mipmap, hr %#x.\n", hr);
             hr = IDirect3DVolumeTexture8_UnlockBox(texture, 1);
@@ -6727,6 +6728,7 @@ static void test_resource_type(void)
     {
         hr = IDirect3DDevice8_CreateVolumeTexture(device, 2, 4, 8, 4, 0, D3DFMT_X8R8G8B8,
                 D3DPOOL_SYSTEMMEM, &volume_texture);
+        ok(SUCCEEDED(hr), "CreateVolumeTexture failed, hr %#x.\n", hr);
         type = IDirect3DVolumeTexture8_GetType(volume_texture);
         ok(type == D3DRTYPE_VOLUMETEXTURE, "Expected type D3DRTYPE_VOLUMETEXTURE, got %u.\n", type);
 
-- 
1.9.3



More information about the wine-patches mailing list