mirror of
https://github.com/reactos/reactos.git
synced 2026-05-30 14:34:57 +08:00
[WIN32SS][NTGDI] Delete unnecessary (ULONG) cast CORE-15755
This commit is contained in:
@@ -5492,7 +5492,7 @@ NtGdiGetFontFamilyInfo(HDC Dc,
|
||||
|
||||
/* Allocate space for a safe copy */
|
||||
Status = RtlULongMult(SafeInfoCount, sizeof(FONTFAMILYINFO), &DataSize);
|
||||
if (!NT_SUCCESS(Status) || (ULONG)DataSize > LONG_MAX)
|
||||
if (!NT_SUCCESS(Status) || DataSize > LONG_MAX)
|
||||
{
|
||||
DPRINT1("Overflowed.\n");
|
||||
EngSetLastError(ERROR_INVALID_PARAMETER);
|
||||
|
||||
Reference in New Issue
Block a user