hid/tests: Do not access uninitialized memory.
Signed-off-by: Detlef Riekenberg <wine.dev@web.de> Signed-off-by: Aric Stewart <aric@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
e5bde58411
commit
f5f34fe018
|
@ -82,7 +82,8 @@ static void run_for_each_device(device_test *test)
|
|||
ok(file != INVALID_HANDLE_VALUE, "Failed to open %s, error %u.\n",
|
||||
wine_dbgstr_w(data->DevicePath), GetLastError());
|
||||
|
||||
test(file);
|
||||
if (file != INVALID_HANDLE_VALUE)
|
||||
test(file);
|
||||
|
||||
CloseHandle(file);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue