mirror of
https://github.com/reactos/reactos.git
synced 2025-02-28 19:32:59 +00:00
[WIN32SS:NTGDI] FontFamilyFillInfo(): Check returned IntGetOutlineTextMetrics() size...
... before allocating pool memory, as it is done everywhere else in the code.
This commit is contained in:
parent
bab23a250b
commit
dbf784472e
1 changed files with 2 additions and 2 deletions
|
@ -3472,11 +3472,11 @@ FontFamilyFillInfo(PFONTFAMILYINFO Info, LPCWSTR FaceName,
|
|||
RtlZeroMemory(Info, sizeof(FONTFAMILYINFO));
|
||||
ASSERT_FREETYPE_LOCK_HELD();
|
||||
Size = IntGetOutlineTextMetrics(FontGDI, 0, NULL, TRUE);
|
||||
if (!Size)
|
||||
return;
|
||||
Otm = ExAllocatePoolWithTag(PagedPool, Size, GDITAG_TEXT);
|
||||
if (!Otm)
|
||||
{
|
||||
return;
|
||||
}
|
||||
ASSERT_FREETYPE_LOCK_HELD();
|
||||
Size = IntGetOutlineTextMetrics(FontGDI, Size, Otm, TRUE);
|
||||
if (!Size)
|
||||
|
|
Loading…
Reference in a new issue