# HG changeset patch # User nicodvb # Date 1279618213 0 # Node ID af0a1be87264b9092dcf9b15bb805eeacbe05018 # Parent 950bb037bedbae4c41de119dd5294001d724f22a in DVDOPen() use isalpha() rather than checking the first char of the device against 'A'..'Z' diff -r 950bb037bedb -r af0a1be87264 dvd_reader.c --- 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