Mail Archives: djgpp-workers/2001/09/30/16:26:15
> > My CDROM drive is mounted and ready but it does not show up at all
> > (not debugged yet).
>
> The CD-specific calls in cdrom_drive_ready probably don't work as
> expected...
Actually this is a problem related to the volume label call failing.
There is code:
/* CD-ROM without a label is taken as an empty CD drive or an
audio disk, and not reported. This is because MSCDEX doesn't
fail `_truename' for these cases and some DOS clones, such as
NT, don't even emulate the drive empty bit reliably.
I have never seen a CD-ROM without a label. Anybody? */
else if (mnt_type == NAME_cdrom)
got_fsname = 0;
Which was causing the problem. If I add && _os_trueversion != 0x532)
to this line, my CD displays when it's in, but not when it's out.
But the comment says NT doesn't emulate drive empty bit reliably -
so this would be not quite right on NT 4.0 (I can confirm this).
So is it better to display a drive which isn't ready on NT4, or not
display a drive which is ready on Windows 2000?
Even better yet, is there a reliable way on Windows 2000 to get a
volume label...
- Raw text -