jdk/src/windows/classes/sun/awt/shell/Win32ShellFolderManager2.java
changeset 4271 35fc7add4925
parent 3978 b024e01b947a
child 4275 4c3444f1b9d8
equal deleted inserted replaced
4270:cfaee5c87755 4271:35fc7add4925
   267                 // Add all second level folders
   267                 // Add all second level folders
   268                 File[] secondLevelFolders = desktop.listFiles();
   268                 File[] secondLevelFolders = desktop.listFiles();
   269                 Arrays.sort(secondLevelFolders);
   269                 Arrays.sort(secondLevelFolders);
   270                 for (File secondLevelFolder : secondLevelFolders) {
   270                 for (File secondLevelFolder : secondLevelFolders) {
   271                     Win32ShellFolder2 folder = (Win32ShellFolder2) secondLevelFolder;
   271                     Win32ShellFolder2 folder = (Win32ShellFolder2) secondLevelFolder;
   272                     if (!folder.isFileSystem() || folder.isDirectory()) {
   272                     if (!folder.isFileSystem() || (folder.isDirectory() && !folder.isLink())) {
   273                         folders.add(folder);
   273                         folders.add(folder);
   274                         // Add third level for "My Computer"
   274                         // Add third level for "My Computer"
   275                         if (folder.equals(drives)) {
   275                         if (folder.equals(drives)) {
   276                             File[] thirdLevelFolders = folder.listFiles();
   276                             File[] thirdLevelFolders = folder.listFiles();
   277                             if (thirdLevelFolders != null && thirdLevelFolders.length > 0) {
   277                             if (thirdLevelFolders != null && thirdLevelFolders.length > 0) {