equal
deleted
inserted
replaced
268 *retval = NULL; |
268 *retval = NULL; |
269 |
269 |
270 rc = DosQueryCurrentDisk(&dummy, &drivemap); |
270 rc = DosQueryCurrentDisk(&dummy, &drivemap); |
271 BAIL_IF_MACRO(os2err(rc) != NO_ERROR, NULL, retval); |
271 BAIL_IF_MACRO(os2err(rc) != NO_ERROR, NULL, retval); |
272 |
272 |
273 /* !!! FIXME: the a, b, and c drives are almost certainly NOT cdroms... */ |
|
274 for (i = 0, bit = 1; i < 26; i++, bit <<= 1) |
273 for (i = 0, bit = 1; i < 26; i++, bit <<= 1) |
275 { |
274 { |
276 if (drivemap & bit) /* this logical drive exists. */ |
275 if (drivemap & bit) /* this logical drive exists. */ |
277 { |
276 { |
278 if ((is_cdrom_drive(i)) && (disc_is_inserted(i))) |
277 if ((is_cdrom_drive(i)) && (disc_is_inserted(i))) |