https://git.reactos.org/?p=reactos.git;a=commitdiff;h=e105aefc1c2b7239cc01a9...
commit e105aefc1c2b7239cc01a98e82d61b8bcf62363a Author: Stanislav Motylkov x86corez@gmail.com AuthorDate: Mon Jan 17 21:04:04 2022 +0300 Commit: Stanislav Motylkov x86corez@gmail.com CommitDate: Mon Jan 17 21:04:04 2022 +0300
[SHELL32] List CD-ROM drives in the "Hardware" tab of disk properties
CORE-17397 --- dll/win32/shell32/dialogs/drvdefext.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/dll/win32/shell32/dialogs/drvdefext.cpp b/dll/win32/shell32/dialogs/drvdefext.cpp index 94be4ebc13f..949ba581f84 100644 --- a/dll/win32/shell32/dialogs/drvdefext.cpp +++ b/dll/win32/shell32/dialogs/drvdefext.cpp @@ -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; } }