CVS: winex/files drive.c,1.45,1.46

[email protected]
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;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.