http://bugs.winehq.org/show_bug.cgi?id=10957
--- Comment #11 from Robert Millan rmh@aybabtu.com 2007-12-30 11:54:23 --- Created an attachment (id=9915) --> (http://bugs.winehq.org/attachment.cgi?id=9915) fix handling of loopback drives
Ok, just found the problem. It only happens in a specific situation. To reproduce (in this example with drive D:, mapped to /media/cdrom0):
sudo mount image.iso /media/cdrom0 -o loop mv image.iso image2.iso
at this point, wine will be incapable of volume access on D:, because the code in ntdll/directory.c:parse_mount_entries() contains a sanity check to require that image.iso is a regular file. However, image.iso may not even exist!
Attached patch fixes this by allowing either the file to exist and be a regular file, or not exist at all (as long as its loopback device exists, of course).
(Note: This fix has nothing to do with supporting this on C: or PhysicalDrive:. Besides, I don't think there's much point in trying to support those since chances are they're rarely used)