mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 08:25:03 +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);
|
EngSetLastError(STATUS_INVALID_PARAMETER);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
RtlZeroMemory(ptmwi, sizeof(TMW_INTERNAL));
|
||||||
|
|
||||||
if (!(dc = DC_LockDc(hDC)))
|
if (!(dc = DC_LockDc(hDC)))
|
||||||
{
|
{
|
||||||
|
@ -4612,7 +4613,6 @@ ftGdiGetTextMetricsW(
|
||||||
FillTM(&ptmwi->TextMetric, FontGDI, pOS2, pHori, !Error ? &Win : 0);
|
FillTM(&ptmwi->TextMetric, FontGDI, pOS2, pHori, !Error ? &Win : 0);
|
||||||
|
|
||||||
/* FIXME: Fill Diff member */
|
/* FIXME: Fill Diff member */
|
||||||
RtlZeroMemory(&ptmwi->Diff, sizeof(ptmwi->Diff));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
IntUnLockFreeType();
|
IntUnLockFreeType();
|
||||||
|
|
Loading…
Reference in a new issue