dsound/tests: Don't test function directly when reporting GetLastError().

This commit is contained in:
André Hentschel 2010-12-29 19:41:17 +01:00 committed by Alexandre Julliard
parent c7cb92f1f2
commit 046bcb7c7e
1 changed files with 2 additions and 1 deletions

View File

@ -1077,7 +1077,8 @@ START_TEST(dsound)
{
BOOL ret;
ok( FreeLibrary(hDsound), "FreeLibrary(1) returned %d\n", GetLastError());
ret = FreeLibrary(hDsound);
ok( ret, "FreeLibrary(1) returned %d\n", GetLastError());
SetLastError(0xdeadbeef);
ret = FreeLibrary(hDsound);
ok( ret ||