< prev index next >

src/java.desktop/windows/classes/sun/awt/shell/Win32ShellFolderManager2.java

Print this page

        

@@ -377,11 +377,12 @@
         } else if (key.startsWith("shell32Icon ") || key.startsWith("shell32LargeIcon ")) {
             String name = key.substring(key.indexOf(" ") + 1);
             try {
                 int i = Integer.parseInt(name);
                 if (i >= 0) {
-                    return Win32ShellFolder2.getShell32Icon(i, key.startsWith("shell32LargeIcon "));
+                    return Win32ShellFolder2.getShell32Icon(i,
+                                 key.startsWith("shell32LargeIcon ") ? 32 : 16);
                 }
             } catch (NumberFormatException ex) {
             }
         }
         return null;
< prev index next >