[DVDnav-discuss] r1204 - trunk/libdvdread/src/dvd_reader.c
nicodvb
subversion at mplayerhq.hu
Tue Jul 20 11:30:13 CEST 2010
Author: nicodvb
Date: Tue Jul 20 11:30:13 2010
New Revision: 1204
Log:
in DVDOPen() use isalpha() rather than checking the first char of the device against 'A'..'Z'
Modified:
trunk/libdvdread/src/dvd_reader.c
Modified: trunk/libdvdread/src/dvd_reader.c
==============================================================================
--- trunk/libdvdread/src/dvd_reader.c Tue Jul 20 10:09:41 2010 (r1203)
+++ trunk/libdvdread/src/dvd_reader.c Tue Jul 20 11:30:13 2010 (r1204)
@@ -525,7 +525,7 @@ dvd_reader_t *DVDOpen( const char *ppath
#elif defined(_WIN32) || defined(__OS2__)
#ifdef __OS2__
/* Use DVDOpenImageFile() only if it is a drive */
- if((path[0]>='A' && path[0]<='Z') && path[1] == ':' &&
+ if(isalpha(path[0]) && path[1] == ':' &&
( !path[2] ||
((path[2] == '\\' || path[2] == '/') && !path[3])))
#endif
More information about the DVDnav-discuss
mailing list