CVS: winex/files drive.c,1.45,1.46
| Newsgroups | gmane.comp.emulators.winex.cvs |
|---|---|
| Message-ID | <[email protected]> |
Subject: winex/files drive.c,1.45,1.46Update of /var/lib/cvsd/cvsroot/winex/files
In directory agravaine:/tmp/cvs-serv26157/files
Modified Files:
drive.c
Log Message:
Add null pointer check for drive->device to DRIVE_IsDevPathCD
(so manually added device-less fake cdroms work again).
Index: drive.c
===================================================================
RCS file: /var/lib/cvsd/cvsroot/winex/files/drive.c,v
retrieving revision 1.45
retrieving revision 1.46
diff -u -d -r1.45 -r1.46
--- drive.c 30 Mar 2007 20:09:02 -0000 1.45
+++ drive.c 30 Mar 2007 21:43:27 -0000 1.46
@@ -202,7 +202,7 @@
for (i = 0, drive = DOSDrives; i < MAX_DOS_DRIVES; i++, drive++)
{
- if (drive->type != DRIVE_CDROM)
+ if (drive->type != DRIVE_CDROM || !drive->device)
continue;
if (strcmp(drive->device, dev_path) == 0)
return TRUE;