André Hentschel : riched32/tests: Don' t test function directly when reporting GetLastError().
Alexandre Julliard
julliard at winehq.org
Fri Dec 31 11:01:03 CST 2010
Module: wine
Branch: master
Commit: 04374ab6d5f2ba717871596ffb157c2cde14f5c6
URL: http://source.winehq.org/git/wine.git/?a=commit;h=04374ab6d5f2ba717871596ffb157c2cde14f5c6
Author: André Hentschel <nerv at dawncrow.de>
Date: Thu Dec 30 19:53:09 2010 +0100
riched32/tests: Don't test function directly when reporting GetLastError().
---
dlls/riched32/tests/editor.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/dlls/riched32/tests/editor.c b/dlls/riched32/tests/editor.c
index f11e3b5..66005d0 100644
--- a/dlls/riched32/tests/editor.c
+++ b/dlls/riched32/tests/editor.c
@@ -1063,6 +1063,7 @@ START_TEST( editor )
{
MSG msg;
time_t end;
+ BOOL ret;
/* Must explicitly LoadLibrary(). The test has no references to functions in
* RICHED32.DLL, so the linker doesn't actually link to it. */
@@ -1101,5 +1102,6 @@ START_TEST( editor )
}
OleFlushClipboard();
- ok(FreeLibrary(hmoduleRichEdit) != 0, "error: %d\n", (int) GetLastError());
+ ret = FreeLibrary(hmoduleRichEdit);
+ ok(ret, "error: %u\n", GetLastError());
}
More information about the wine-cvs
mailing list