Mercurial > libdvdread4.hg
changeset 56:af0a1be87264 src
in DVDOPen() use isalpha() rather than checking the first char of the device against 'A'..'Z'
author | nicodvb |
---|---|
date | Tue, 20 Jul 2010 09:30:13 +0000 |
parents | 950bb037bedb |
children | 4554518224d7 |
files | dvd_reader.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/dvd_reader.c Tue Jul 20 08:09:41 2010 +0000 +++ b/dvd_reader.c Tue Jul 20 09:30:13 2010 +0000 @@ -525,7 +525,7 @@ #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