Commit bba0c7da authored by Nico Sabbi's avatar Nico Sabbi

in DVDOPen() use isalpha() rather than checking the first char of the device against 'A'..'Z'

parent 8c3ccdd6
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment