ntdll/cdrom : implement CDROM_Verify to work on Mac OS X, with comment (try 2)
Loïc Maury
lmaury at gmail.com
Sat Jan 22 08:35:51 CST 2011
Hello,
I have add comment in the code for the patch.
Thank you
Loïc
---
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..d65850d 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;
+/* At this point, we know that we have media, because in Mac OS X, the
+ * device file is only created when media is present. */
+#elif defined(__APPLE__)
+ return STATUS_SUCCESS;
#else
FIXME("not supported on this O/S\n");
return STATUS_NOT_SUPPORTED;
--
1.7.3.2
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20110122/fc79e98a/attachment.htm>
More information about the wine-devel
mailing list