mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-06 04:20:56 +00:00
gdi32: Fix empty glyph handling.
This commit is contained in:
parent
e29e4caca3
commit
31a6fce46b
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue