ntdll: Implement CDROM_Verify for FreeBSD.

This commit is contained in:
Tijl Coosemans 2007-08-08 00:30:59 +02:00 committed by Alexandre Julliard
parent 3429068f35
commit 5fb1c16276
1 changed files with 7 additions and 0 deletions

View File

@ -1036,6 +1036,13 @@ static NTSTATUS CDROM_Verify(int dev, int fd)
return STATUS_SUCCESS;
else
return STATUS_NO_MEDIA_IN_DEVICE;
#elif defined(__FreeBSD__)
int ret;
ret = ioctl(fd, CDIOCSTART, NULL);
if(ret == 0)
return STATUS_SUCCESS;
else
return STATUS_NO_MEDIA_IN_DEVICE;
#else
FIXME("not implemented for non-linux\n");
return STATUS_NOT_SUPPORTED;