platform/os2.c
changeset 472 63c6c4f34760
parent 427 c38ace41039f
child 504 3420d82f9b01
equal deleted inserted replaced
471:80ba173a3125 472:63c6c4f34760
   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)))