mirror of
https://github.com/reactos/reactos.git
synced 2025-06-06 01:40:36 +00:00
[WIN32SS][NTGDI][FREETYPE] Add ASSERT(pOS2); to FillTM (#2170)
I had used a static analyzer cppcheck to improve the code. This analyzer suggested NULL check for this code.
This commit is contained in:
parent
9ce12f0b4c
commit
fb7ac93dd1
1 changed files with 4 additions and 0 deletions
|
@ -2272,6 +2272,10 @@ FillTM(TEXTMETRICW *TM, PFONTGDI FontGDI,
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ASSERT(pOS2);
|
||||||
|
if (!pOS2)
|
||||||
|
return;
|
||||||
|
|
||||||
if ((FT_Short)pOS2->usWinAscent + (FT_Short)pOS2->usWinDescent == 0)
|
if ((FT_Short)pOS2->usWinAscent + (FT_Short)pOS2->usWinDescent == 0)
|
||||||
{
|
{
|
||||||
Ascent = pHori->Ascender;
|
Ascent = pHori->Ascender;
|
||||||
|
|
Loading…
Reference in a new issue