qwave: Don't test the last error in the successful case.

On Windows 8 and above we may get ERROR_SERVICE_ALREADY_RUNNING.

Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Zebediah Figura 2019-10-19 14:47:35 -05:00 committed by Alexandre Julliard
parent e2206eefdb
commit 5cded95308

View file

@ -44,12 +44,10 @@ static void test_QOSCreateHandle(void)
ok(ret == FALSE, "Expected FALSE, got %d\n", ret);
ok(GetLastError() == ERROR_INVALID_PARAMETER, "Expected ERROR_INVALID_PARAMETER, got %d\n", GetLastError());
SetLastError(0xdeadbeef);
ver.MajorVersion = 1;
ver.MinorVersion = 0;
ret = QOSCreateHandle(&ver, &h);
todo_wine ok(ret == TRUE, "Expected TRUE, got %d\n", ret);
todo_wine ok(GetLastError() == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", GetLastError());
SetLastError(0xdeadbeef);
ver.MajorVersion = 1;