From 03516733efec834a5467f7ef7e18824f8eb3d9a2 Mon Sep 17 00:00:00 2001 From: James Tabor Date: Mon, 6 Sep 2021 17:53:35 -0500 Subject: [PATCH] [GDI32] Do not fail on path with bitmap fonts. Patch by Dmitry Timoshkov : ExtTextOut on a path with bitmap font selected shouldn't fail. This just leads to empty path generated. --- win32ss/gdi/ntgdi/path.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/win32ss/gdi/ntgdi/path.c b/win32ss/gdi/ntgdi/path.c index 717fe9568b9..4343d553e0e 100644 --- a/win32ss/gdi/ntgdi/path.c +++ b/win32ss/gdi/ntgdi/path.c @@ -2378,8 +2378,11 @@ PATH_ExtTextOut( TRUE); if (dwSize == GDI_ERROR) { - PATH_UnlockPath(pPath); - return FALSE; + // With default DC font,,, bitmap font? + // ExtTextOut on a path with bitmap font selected shouldn't fail. + // This just leads to empty path generated. + // Ref : test_emf_ExtTextOut_on_path + continue; } /* Add outline only if char is printable */