d3drm/tests: Simplify a conditional expression.

Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Henri Verbeet 2017-07-12 18:42:28 +02:00 committed by Alexandre Julliard
parent 683b9992f6
commit 7227889496
1 changed files with 1 additions and 1 deletions

View File

@ -109,7 +109,7 @@ static void test_class_name_(unsigned int line, IDirect3DRMObject *object, const
ok_(__FILE__, line)(hr == D3DRM_OK, "Failed to get classname size, hr %#x.\n", hr);
ok_(__FILE__, line)(size == strlen(name) + 1, "wrong size: %u\n", size);
size = size2 = !!*name ? 1 : 0;
size = size2 = !!*name;
hr = IDirect3DRMObject_GetClassName(object, &size, cname);
ok_(__FILE__, line)(hr == E_INVALIDARG, "Got unexpected hr %#x.\n", hr);
ok_(__FILE__, line)(size == size2, "Got size %u.\n", size);