comparison dvd_reader.c @ 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
comparison
equal deleted inserted replaced
55:950bb037bedb 56:af0a1be87264
523 fclose( mntfile ); 523 fclose( mntfile );
524 } 524 }
525 #elif defined(_WIN32) || defined(__OS2__) 525 #elif defined(_WIN32) || defined(__OS2__)
526 #ifdef __OS2__ 526 #ifdef __OS2__
527 /* Use DVDOpenImageFile() only if it is a drive */ 527 /* Use DVDOpenImageFile() only if it is a drive */
528 if((path[0]>='A' && path[0]<='Z') && path[1] == ':' && 528 if(isalpha(path[0]) && path[1] == ':' &&
529 ( !path[2] || 529 ( !path[2] ||
530 ((path[2] == '\\' || path[2] == '/') && !path[3]))) 530 ((path[2] == '\\' || path[2] == '/') && !path[3])))
531 #endif 531 #endif
532 auth_drive = DVDOpenImageFile( path, have_css ); 532 auth_drive = DVDOpenImageFile( path, have_css );
533 #endif 533 #endif