comparison dvd_reader.c @ 54:de60b270bd83 src

as for win32 check for \video_ts as /video_ts in OS/2; patch by komh chollian net
author nicodvb
date Tue, 20 Jul 2010 08:01:19 +0000
parents f7e7938944e9
children 950bb037bedb
comparison
equal deleted inserted replaced
53:f7e7938944e9 54:de60b270bd83
452 if( path_copy[ strlen( path_copy ) - 1 ] == '/' ) { 452 if( path_copy[ strlen( path_copy ) - 1 ] == '/' ) {
453 path_copy[ strlen( path_copy ) - 1 ] = '\0'; 453 path_copy[ strlen( path_copy ) - 1 ] = '\0';
454 } 454 }
455 } 455 }
456 456
457 #ifdef _WIN32 457 #if defined(_WIN32) || defined(__OS2__)
458 if(strlen(path_copy) > TITLES_MAX) { 458 if(strlen(path_copy) > TITLES_MAX) {
459 if(!strcasecmp(&(path_copy[strlen( path_copy ) - TITLES_MAX]), 459 if(!strcasecmp(&(path_copy[strlen( path_copy ) - TITLES_MAX]),
460 "\\video_ts")) 460 "\\video_ts"))
461 path_copy[strlen(path_copy) - (TITLES_MAX-1)] = '\0'; 461 path_copy[strlen(path_copy) - (TITLES_MAX-1)] = '\0';
462 } 462 }