Mercurial > libdvdread4.hg
changeset 52:645a8b52b951 src
in OS/2 Use DVDOpenImageFile() only if it is a drive; patch by komh chollian net
author | nicodvb |
---|---|
date | Tue, 20 Jul 2010 07:51:43 +0000 |
parents | f06a93055430 |
children | f7e7938944e9 |
files | dvd_reader.c |
diffstat | 1 files changed, 7 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/dvd_reader.c Tue Jun 01 17:07:13 2010 +0000 +++ b/dvd_reader.c Tue Jul 20 07:51:43 2010 +0000 @@ -28,6 +28,7 @@ #include <stdio.h> #include <errno.h> #include <string.h> +#include <ctype.h> #include <unistd.h> #include <limits.h> #include <dirent.h> @@ -522,6 +523,12 @@ fclose( mntfile ); } #elif defined(_WIN32) || defined(__OS2__) +#ifdef __OS2__ + /* Use DVDOpenImageFile() only if it is a drive */ + if((path[0]>='A' && path[0]<='Z') && path[1] == ':' && + ( !path[2] || + ((path[2] == '\\' || path[2] == '/') && !path[3]))) +#endif auth_drive = DVDOpenImageFile( path, have_css ); #endif