Print warning when drives of type cdrom do not contain a device field
Mike Hearn
mike at theoretic.com
Tue Jan 13 13:11:17 CST 2004
I wasted half and hour tracing through the cdrom subsystem to find out why
halflife wasn't playing any music, only to find it was a config file
problem. Maybe this message can stop other people from making the same
mistake.
Index: files/drive.c
===================================================================
RCS file: /home/wine/wine/files/drive.c,v
retrieving revision 1.104
diff -u -r1.104 drive.c
--- files/drive.c 25 Nov 2003 01:51:07 -0000 1.104
+++ files/drive.c 13 Jan 2004 19:01:13 -0000
@@ -338,7 +338,9 @@
close(cd_fd);
}
}
- }
+ } else if (drive->type == DRIVE_CDROM) {
+ MESSAGE("\n* You have a CD-ROM drive defined in your configuration, but it is missing the Device key.\n* Playing CD audio and direct access will not work.\n\n");
+ }
/* Get the FailReadOnly flag */
RtlInitUnicodeString( &nameW, FailReadOnlyW );
More information about the wine-patches
mailing list