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 ||