Module: wine
Branch: master
Commit: 1b767a5948d36f35405da8329978695d5d7ac733
URL: http://source.winehq.org/git/wine.git/?a=commit;h=1b767a5948d36f35405da8329…
Author: Loïc Maury <lmaury(a)gmail.com>
Date: Tue Jan 25 13:25:27 2011 +0100
ntdll : Implement CDROM_Verify to work on Mac OS X.
---
dlls/ntdll/cdrom.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/dlls/ntdll/cdrom.c b/dlls/ntdll/cdrom.c
index 59f85a0..6a6d8e0 100644
--- a/dlls/ntdll/cdrom.c
+++ b/dlls/ntdll/cdrom.c
@@ -1121,6 +1121,10 @@ static NTSTATUS CDROM_Verify(int dev, int fd)
return STATUS_SUCCESS;
else
return STATUS_NO_MEDIA_IN_DEVICE;
+#elif defined(__APPLE__)
+ /* At this point, we know that we have media, because in Mac OS X, the
+ * device file is only created when media is present. */
+ return STATUS_SUCCESS;
#else
FIXME("not supported on this O/S\n");
return STATUS_NOT_SUPPORTED;