comparison dvd_reader.c @ 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 60720f86d145
children f7e7938944e9
comparison
equal deleted inserted replaced
51:f06a93055430 52:645a8b52b951
26 #include <fcntl.h> 26 #include <fcntl.h>
27 #include <stdlib.h> 27 #include <stdlib.h>
28 #include <stdio.h> 28 #include <stdio.h>
29 #include <errno.h> 29 #include <errno.h>
30 #include <string.h> 30 #include <string.h>
31 #include <ctype.h>
31 #include <unistd.h> 32 #include <unistd.h>
32 #include <limits.h> 33 #include <limits.h>
33 #include <dirent.h> 34 #include <dirent.h>
34 35
35 /* misc win32 helpers */ 36 /* misc win32 helpers */
520 } 521 }
521 } 522 }
522 fclose( mntfile ); 523 fclose( mntfile );
523 } 524 }
524 #elif defined(_WIN32) || defined(__OS2__) 525 #elif defined(_WIN32) || defined(__OS2__)
526 #ifdef __OS2__
527 /* Use DVDOpenImageFile() only if it is a drive */
528 if((path[0]>='A' && path[0]<='Z') && path[1] == ':' &&
529 ( !path[2] ||
530 ((path[2] == '\\' || path[2] == '/') && !path[3])))
531 #endif
525 auth_drive = DVDOpenImageFile( path, have_css ); 532 auth_drive = DVDOpenImageFile( path, have_css );
526 #endif 533 #endif
527 534
528 #if !defined(_WIN32) && !defined(__OS2__) 535 #if !defined(_WIN32) && !defined(__OS2__)
529 if( !dev_name ) { 536 if( !dev_name ) {