Skip to content

Commit

Permalink
8287446: Enhance icon presentations
Browse files Browse the repository at this point in the history
Reviewed-by: prr, azvegint
  • Loading branch information
Alexander Zuev authored and slowhog committed Oct 18, 2022
1 parent 5a8e5ea commit 896a29d
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -1060,7 +1060,7 @@ JNIEXPORT jintArray JNICALL Java_sun_awt_shell_Win32ShellFolder2_getIconBits
// limit iconSize to MAX_ICON_SIZE, so that the colorBits and maskBits
// arrays are big enough.
// (logic: rather show bad icons than overrun the array size)
iconSize = iconSize > MAX_ICON_SIZE ? MAX_ICON_SIZE : iconSize;
iconSize = (iconSize <= 0 || iconSize > MAX_ICON_SIZE) ? MAX_ICON_SIZE : iconSize;

// Set up BITMAPINFO
BITMAPINFO bmi;
Expand Down

0 comments on commit 896a29d

Please sign in to comment.