Error 1785 is ERROR_UNRECOGNIZED_MEDIA wich means "The disk media is not recognized. It may not be formatted."Hi Alexandre.
I have a test failure on my win7 Machine, while a valid cd was in the dvd drive.
volume.c:785: Test failed: IOCTL_DVD_READ_STRUCTURE (DvdPhysicalDescriptor) failed, last error = 1785
Example result:
(The same failure is present, when running the 64bit test)
Other machines are also affected.
Example:
As many developpers, I tried with things I had at home.You wrote the tests, which where comitted on 12. July 2012:
What media did you use, to test your code?
Data-DVD, Video-DVD, Empty DVD, Data-CD, Video-CD, Audio-CD, Empty CD, No Disc in Drive
What results did you get on Windows and Unix?
Error 87 is ERROR_INVALID_PARAMETER wich is probably returned from http://source.winehq.org/source/dlls/ntdll/cdrom.c#L2546 meaning the ioctl() call failed for some reason.On Linux, mounting the example CD works perfect, but your test fails:volume.c:785: Test failed: IOCTL_DVD_READ_STRUCTURE (DvdPhysicalDescriptor) failed, last error = 87
Dumping may help you but as we only take the result of ioctl() to feed the different fields of a structure, I don't really see what we can do .. except modifying the code in the kernel to return what we expect.Your test only read the DVD descriptor.
To fix your test, I suggest, that you add a trace to dump the
*_READ_STRUCTURE IoControl result and add similar tests
for the other media formats.
I also tested with a different Data-CD and got the same failure on linux (last error = 87).
You can check the image yourself:
(Burned on a CD)
That all winetest vm are missing optical media is a different issue:
--
By by ... Detlef