Commit 31a6fce4 authored by Akihiro Sagawa's avatar Akihiro Sagawa Committed by Alexandre Julliard

gdi32: Fix empty glyph handling.

parent e29e4cac
......@@ -1812,7 +1812,11 @@ static DWORD get_glyph_bitmap( HDC hdc, UINT index, UINT flags, UINT aa_flags,
image->ptr = NULL;
image->free = NULL;
if (!ret) return ERROR_SUCCESS; /* empty glyph */
if (!ret) /* empty glyph */
{
metrics->gmBlackBoxX = metrics->gmBlackBoxY = 0;
return ERROR_SUCCESS;
}
stride = get_dib_stride( metrics->gmBlackBoxX, 1 );
size = metrics->gmBlackBoxY * stride;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment