[SHELL32]
authorJohannes Anderwald <johannes.anderwald@reactos.org>
Mon, 26 Apr 2010 12:56:32 +0000 (12:56 +0000)
committerJohannes Anderwald <johannes.anderwald@reactos.org>
Mon, 26 Apr 2010 12:56:32 +0000 (12:56 +0000)
- Assume it is an empty cdrom drive when there is no root mounted

See issue #2977 for more details.

svn path=/trunk/; revision=47033

reactos/dll/win32/shell32/folders.c

index 9b71506..d1a6c67 100644 (file)
@@ -257,6 +257,7 @@ IExtractIconW* IExtractIconW_Constructor(LPCITEMIDLIST pidl)
                 case DRIVE_CDROM:       icon_idx = IDI_SHELL_CDROM;         break;
                 case DRIVE_REMOTE:      icon_idx = IDI_SHELL_NETDRIVE;      break;
                 case DRIVE_RAMDISK:     icon_idx = IDI_SHELL_RAMDISK;       break;
+                case DRIVE_NO_ROOT_DIR: icon_idx = IDI_SHELL_CDROM;         break;
             }
         }