Windows CD-ROM disc change notification: verify the correct bit of the unit mask.

This commit is contained in:
OBattler
2025-03-13 20:59:59 +01:00
parent 4f8a7ac633
commit b1a02a6d13

View File

@@ -160,7 +160,7 @@ notify_drives(ULONG unitmask, int empty)
char p[1024] = { 0 };
for (int i = 0; i < 26; ++i) {
if (unitmask & 0x1) {
if (unitmask & (1 << i)) {
cdrom_t *dev = NULL;
sprintf(p, "ioctl://\\\\.\\%c:", 'A' + i);