mirror of
https://github.com/reactos/wine.git
synced 2025-02-04 19:18:00 +00:00
d3d9: Remove useless NULL check in stateblock test (Coverity).
This commit is contained in:
parent
43eb9ab9d7
commit
7111ca5506
@ -1569,6 +1569,7 @@ START_TEST(stateblock)
|
||||
IDirect3DDevice9 *device_ptr = NULL;
|
||||
D3DPRESENT_PARAMETERS device_pparams;
|
||||
HRESULT hret;
|
||||
ULONG refcount;
|
||||
|
||||
d3d9_handle = LoadLibraryA("d3d9.dll");
|
||||
if (!d3d9_handle)
|
||||
@ -1584,9 +1585,6 @@ START_TEST(stateblock)
|
||||
test_state_management(device_ptr, &device_pparams);
|
||||
test_shader_constant_apply(device_ptr);
|
||||
|
||||
if (device_ptr)
|
||||
{
|
||||
ULONG refcount = IDirect3DDevice9_Release(device_ptr);
|
||||
ok(!refcount, "Device has %u references left\n", refcount);
|
||||
}
|
||||
refcount = IDirect3DDevice9_Release(device_ptr);
|
||||
ok(!refcount, "Device has %u references left\n", refcount);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user