[WIN32SS][NTGDI] Delete unnecessary (ULONG) cast CORE-15755
authorKatayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com>
Thu, 11 Apr 2019 09:23:32 +0000 (18:23 +0900)
committerKatayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com>
Thu, 11 Apr 2019 09:23:32 +0000 (18:23 +0900)
win32ss/gdi/ntgdi/freetype.c

index 2f699cd..b5433d3 100644 (file)
@@ -5492,7 +5492,7 @@ NtGdiGetFontFamilyInfo(HDC Dc,
 
     /* Allocate space for a safe copy */
     Status = RtlULongMult(SafeInfoCount, sizeof(FONTFAMILYINFO), &DataSize);
 
     /* 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);
     {
         DPRINT1("Overflowed.\n");
         EngSetLastError(ERROR_INVALID_PARAMETER);