mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 17:05:44 +00:00
[WIN32SS][NTGDI] Delete unnecessary (ULONG) cast CORE-15755
This commit is contained in:
parent
bc9f3ed887
commit
983cd57c1e
1 changed files with 1 additions and 1 deletions
|
@ -5492,7 +5492,7 @@ NtGdiGetFontFamilyInfo(HDC Dc,
|
||||||
|
|
||||||
/* Allocate space for a safe copy */
|
/* Allocate space for a safe copy */
|
||||||
Status = RtlULongMult(SafeInfoCount, sizeof(FONTFAMILYINFO), &DataSize);
|
Status = RtlULongMult(SafeInfoCount, sizeof(FONTFAMILYINFO), &DataSize);
|
||||||
if (!NT_SUCCESS(Status) || (ULONG)DataSize > LONG_MAX)
|
if (!NT_SUCCESS(Status) || DataSize > LONG_MAX)
|
||||||
{
|
{
|
||||||
DPRINT1("Overflowed.\n");
|
DPRINT1("Overflowed.\n");
|
||||||
EngSetLastError(ERROR_INVALID_PARAMETER);
|
EngSetLastError(ERROR_INVALID_PARAMETER);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue