From 7583b2b298cc44a3de43fb505995955bd54af4c2 Mon Sep 17 00:00:00 2001 From: Mark Jansen Date: Sun, 11 Jun 2017 08:51:36 +0000 Subject: [PATCH] [WIN32KNT_APITEST] Do not assert on the result of an unimplemented function. svn path=/trunk/; revision=74996 --- rostests/apitests/win32nt/ntgdi/NtGdiEnumFontOpen.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rostests/apitests/win32nt/ntgdi/NtGdiEnumFontOpen.c b/rostests/apitests/win32nt/ntgdi/NtGdiEnumFontOpen.c index 9d10eb78df2..6f2d972d8a6 100644 --- a/rostests/apitests/win32nt/ntgdi/NtGdiEnumFontOpen.c +++ b/rostests/apitests/win32nt/ntgdi/NtGdiEnumFontOpen.c @@ -19,7 +19,9 @@ START_TEST(NtGdiEnumFontOpen) // FIXME: We should load the font first idEnum = NtGdiEnumFontOpen(hDC, 2, 0, 32, L"Courier", ANSI_CHARSET, &ulCount); - ASSERT(idEnum != 0); + TEST(idEnum != 0); + if (idEnum == 0) + return; /* we should have a gdi handle here */ TEST(GDI_HANDLE_GET_TYPE(idEnum) == GDI_OBJECT_TYPE_ENUMFONT);