[SHELL32] List CD-ROM drives in the "Hardware" tab of disk properties
authorStanislav Motylkov <x86corez@gmail.com>
Mon, 17 Jan 2022 18:04:04 +0000 (21:04 +0300)
committerStanislav Motylkov <x86corez@gmail.com>
Mon, 17 Jan 2022 18:04:04 +0000 (21:04 +0300)
CORE-17397

dll/win32/shell32/dialogs/drvdefext.cpp

index 94be4eb..949ba58 100644 (file)
@@ -24,6 +24,7 @@
 
 #define _USE_MATH_DEFINES
 #include <math.h>
+#include <devguid.h>
 
 #define NTOS_MODE_USER
 #include <ndk/iofuncs.h>
@@ -31,8 +32,6 @@
 
 WINE_DEFAULT_DEBUG_CHANNEL(shell);
 
-static const GUID GUID_DEVCLASS_DISKDRIVE = {0x4d36e967L, 0xe325, 0x11ce, {0xbf, 0xc1, 0x08, 0x00, 0x2b, 0xe1, 0x03, 0x18}};
-
 typedef enum
 {
     HWPD_STANDARDLIST = 0,
@@ -653,10 +652,12 @@ CDrvDefExt::HardwarePageProc(
     {
         case WM_INITDIALOG:
         {
-            GUID Guid = GUID_DEVCLASS_DISKDRIVE;
+            GUID Guids[2];
+            Guids[0] = GUID_DEVCLASS_DISKDRIVE;
+            Guids[1] = GUID_DEVCLASS_CDROM;
 
             /* create the hardware page */
-            DeviceCreateHardwarePageEx(hwndDlg, &Guid, 1, HWPD_STANDARDLIST);
+            DeviceCreateHardwarePageEx(hwndDlg, Guids, _countof(Guids), HWPD_STANDARDLIST);
             break;
         }
     }