https://git.reactos.org/?p=reactos.git;a=commitdiff;h=983cd57c1eaae41383f850...
commit 983cd57c1eaae41383f850d2372170bb0b4a5efb Author: Katayama Hirofumi MZ katayama.hirofumi.mz@gmail.com AuthorDate: Thu Apr 11 18:23:32 2019 +0900 Commit: Katayama Hirofumi MZ katayama.hirofumi.mz@gmail.com CommitDate: Thu Apr 11 18:23:32 2019 +0900
[WIN32SS][NTGDI] Delete unnecessary (ULONG) cast CORE-15755 --- win32ss/gdi/ntgdi/freetype.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/win32ss/gdi/ntgdi/freetype.c b/win32ss/gdi/ntgdi/freetype.c index 2f699cdacbe..b5433d38441 100644 --- a/win32ss/gdi/ntgdi/freetype.c +++ b/win32ss/gdi/ntgdi/freetype.c @@ -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);