Windows CD-ROM disc change notification: verify the correct bit of the unit mask.
This commit is contained in:
@@ -160,7 +160,7 @@ notify_drives(ULONG unitmask, int empty)
|
|||||||
char p[1024] = { 0 };
|
char p[1024] = { 0 };
|
||||||
|
|
||||||
for (int i = 0; i < 26; ++i) {
|
for (int i = 0; i < 26; ++i) {
|
||||||
if (unitmask & 0x1) {
|
if (unitmask & (1 << i)) {
|
||||||
cdrom_t *dev = NULL;
|
cdrom_t *dev = NULL;
|
||||||
|
|
||||||
sprintf(p, "ioctl://\\\\.\\%c:", 'A' + i);
|
sprintf(p, "ioctl://\\\\.\\%c:", 'A' + i);
|
||||||
|
|||||||
Reference in New Issue
Block a user