mirror of
https://github.com/reactos/reactos.git
synced 2025-02-21 16:04:57 +00:00
[NTGDI] Fix stack memory disclosure in ftGdiGetTextMetricsW (#2991)
This commit is contained in:
parent
a081e12fbd
commit
247c189263
1 changed files with 1 additions and 1 deletions
|
@ -4560,6 +4560,7 @@ ftGdiGetTextMetricsW(
|
|||
EngSetLastError(STATUS_INVALID_PARAMETER);
|
||||
return FALSE;
|
||||
}
|
||||
RtlZeroMemory(ptmwi, sizeof(TMW_INTERNAL));
|
||||
|
||||
if (!(dc = DC_LockDc(hDC)))
|
||||
{
|
||||
|
@ -4612,7 +4613,6 @@ ftGdiGetTextMetricsW(
|
|||
FillTM(&ptmwi->TextMetric, FontGDI, pOS2, pHori, !Error ? &Win : 0);
|
||||
|
||||
/* FIXME: Fill Diff member */
|
||||
RtlZeroMemory(&ptmwi->Diff, sizeof(ptmwi->Diff));
|
||||
}
|
||||
|
||||
IntUnLockFreeType();
|
||||
|
|
Loading…
Reference in a new issue