From: समीर सिंह Sameer Singh <lumarzeli30@gmail.com> For when the hdc is NULL. Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=59680 --- dlls/gdi32/uniscribe/shape.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dlls/gdi32/uniscribe/shape.c b/dlls/gdi32/uniscribe/shape.c index 85e65819e91..a6f7fcfccd6 100644 --- a/dlls/gdi32/uniscribe/shape.c +++ b/dlls/gdi32/uniscribe/shape.c @@ -925,6 +925,11 @@ static HRESULT mark_invalid_combinations(HDC hdc, const WCHAR* pwcChars, INT cCh if (NtGdiGetGlyphIndicesW(hdc, &invalid, 1, &invalid_glyph, 0) == GDI_ERROR || invalid_glyph == 0x0000) { + if (!hdc) + { + free(context_type); + return E_PENDING; + } invalid = 0x0020; NtGdiGetGlyphIndicesW(hdc, &invalid, 1, &invalid_glyph, 0); } -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/10998