André Hentschel : dsound/tests: Don' t test function directly when reporting GetLastError().
Alexandre Julliard
julliard at winehq.org
Thu Dec 30 10:49:56 CST 2010
Module: wine
Branch: master
Commit: 046bcb7c7e7fb799691342cad1ab9a4bfe13d0c6
URL: http://source.winehq.org/git/wine.git/?a=commit;h=046bcb7c7e7fb799691342cad1ab9a4bfe13d0c6
Author: André Hentschel <nerv at dawncrow.de>
Date: Wed Dec 29 19:41:17 2010 +0100
dsound/tests: Don't test function directly when reporting GetLastError().
---
dlls/dsound/tests/dsound.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/dlls/dsound/tests/dsound.c b/dlls/dsound/tests/dsound.c
index 02d93fd..3b5a1bd 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 ||
More information about the wine-cvs
mailing list