File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/java.desktop/windows/native/libawt/windows Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 11/*
2- * Copyright (c) 2003, 2021 , Oracle and/or its affiliates. All rights reserved.
2+ * Copyright (c) 2003, 2022 , Oracle and/or its affiliates. All rights reserved.
33 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44 *
55 * This code is free software; you can redistribute it and/or modify it
@@ -1043,7 +1043,7 @@ JNIEXPORT jintArray JNICALL Java_sun_awt_shell_Win32ShellFolder2_getIconBits
10431043 // limit iconSize to MAX_ICON_SIZE, so that the colorBits and maskBits
10441044 // arrays are big enough.
10451045 // (logic: rather show bad icons than overrun the array size)
1046- iconSize = iconSize > MAX_ICON_SIZE ? MAX_ICON_SIZE : iconSize;
1046+ iconSize = ( iconSize <= 0 || iconSize > MAX_ICON_SIZE) ? MAX_ICON_SIZE : iconSize;
10471047
10481048 // Set up BITMAPINFO
10491049 BITMAPINFO bmi;
You can’t perform that action at this time.
0 commit comments