Kaydet (Commit) f263692d authored tarafından Caolán McNamara's avatar Caolán McNamara

Resolves: tdf#112180: avoid crash with specific ttf

Change-Id: I8cde147279173bffec0c991eb7676f5d4641138d
Reviewed-on: https://gerrit.libreoffice.org/41935Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst 2bfb174e
......@@ -87,9 +87,9 @@ RawFontData::RawFontData( HDC hDC, DWORD nTableTag )
{
// get required size in bytes
mnByteCount = ::GetFontData( hDC, nTableTag, 0, nullptr, 0 );
if( mnByteCount == GDI_ERROR )
return;
else if( !mnByteCount )
if (mnByteCount == GDI_ERROR)
mnByteCount = 0;
if (!mnByteCount)
return;
// allocate the array
......
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