Print warning when drives of type cdrom do not contain a device field

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 );




[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux