setupapi/tests: Fix a crash in the need_media tests.

Signed-off-by: Sven Baars <sven.wine@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Sven Baars 2019-08-18 00:09:03 +02:00 committed by Alexandre Julliard
parent 2eb50028e3
commit 448f4cc9a2
1 changed files with 1 additions and 0 deletions

View File

@ -1903,6 +1903,7 @@ static void test_need_media(void)
queue = SetupOpenFileQueue(); queue = SetupOpenFileQueue();
ok(queue != INVALID_HANDLE_VALUE, "Failed to open queue, error %#x.\n", GetLastError()); ok(queue != INVALID_HANDLE_VALUE, "Failed to open queue, error %#x.\n", GetLastError());
copy_params.LayoutInf = hinf; copy_params.LayoutInf = hinf;
copy_params.QueueHandle = queue;
/* In fact this fails with ERROR_INVALID_PARAMETER on 8+. */ /* In fact this fails with ERROR_INVALID_PARAMETER on 8+. */
if (SetupQueueCopyIndirectA(&copy_params)) if (SetupQueueCopyIndirectA(&copy_params))
{ {