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;
On Jan 22, 2011, at 8:35 AM, Loïc Maury wrote:
I have add comment in the code for the patch.
@@ -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;
The comment should be inside the __APPLE__ block, and indented to match the return statement.
Regards, Ken