From 046bcb7c7e7fb799691342cad1ab9a4bfe13d0c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Hentschel?= Date: Wed, 29 Dec 2010 19:41:17 +0100 Subject: [PATCH] dsound/tests: Don't test function directly when reporting GetLastError(). --- dlls/dsound/tests/dsound.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dlls/dsound/tests/dsound.c b/dlls/dsound/tests/dsound.c index 02d93fd8714..3b5a1bddf1a 100644 --- a/dlls/dsound/tests/dsound.c +++ b/dlls/dsound/tests/dsound.c @@ -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 ||