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

oldstable
André Hentschel 2010-12-30 02:39:40 +01:00 committed by Alexandre Julliard
parent 4ed08b9d24
commit cea221caa0
1 changed files with 3 additions and 1 deletions

View File

@ -7070,6 +7070,7 @@ static void test_dialogmode(void)
START_TEST( editor )
{
BOOL ret;
/* Must explicitly LoadLibrary(). The test has no references to functions in
* RICHED20.DLL, so the linker doesn't actually link to it. */
hmoduleRichEdit = LoadLibrary("RICHED20.DLL");
@ -7134,5 +7135,6 @@ START_TEST( editor )
}
OleFlushClipboard();
ok(FreeLibrary(hmoduleRichEdit) != 0, "error: %d\n", (int) GetLastError());
ret = FreeLibrary(hmoduleRichEdit);
ok(ret, "error: %d\n", (int) GetLastError());
}