mirror of
https://github.com/reactos/reactos.git
synced 2026-05-30 14:34:57 +08:00
[WIN32SS][NTGDI] 'otm' is always non-NULL in epilogue
This commit is contained in:
@@ -928,25 +928,24 @@ NtGdiGetOutlineTextMetricsInternalW (HDC hDC,
|
||||
return 0;
|
||||
}
|
||||
IntGetOutlineTextMetrics(FontGDI, Size, potm);
|
||||
if (otm)
|
||||
{
|
||||
_SEH2_TRY
|
||||
{
|
||||
ProbeForWrite(otm, Size, 1);
|
||||
RtlCopyMemory(otm, potm, Size);
|
||||
}
|
||||
_SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER)
|
||||
{
|
||||
Status = _SEH2_GetExceptionCode();
|
||||
}
|
||||
_SEH2_END
|
||||
|
||||
if (!NT_SUCCESS(Status))
|
||||
{
|
||||
EngSetLastError(ERROR_INVALID_PARAMETER);
|
||||
Size = 0;
|
||||
}
|
||||
_SEH2_TRY
|
||||
{
|
||||
ProbeForWrite(otm, Size, 1);
|
||||
RtlCopyMemory(otm, potm, Size);
|
||||
}
|
||||
_SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER)
|
||||
{
|
||||
Status = _SEH2_GetExceptionCode();
|
||||
}
|
||||
_SEH2_END
|
||||
|
||||
if (!NT_SUCCESS(Status))
|
||||
{
|
||||
EngSetLastError(ERROR_INVALID_PARAMETER);
|
||||
Size = 0;
|
||||
}
|
||||
|
||||
ExFreePoolWithTag(potm,GDITAG_TEXT);
|
||||
return Size;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user