[DVDnav-discuss] r1201 - trunk/libdvdread/src/dvd_reader.c

nicodvb subversion at mplayerhq.hu
Tue Jul 20 09:55:33 CEST 2010


Author: nicodvb
Date: Tue Jul 20 09:55:32 2010
New Revision: 1201

Log:
As for win32 strip off the trailing \ if it is not a drive
on OS/2. Patch by Komh chollian net

Modified:
   trunk/libdvdread/src/dvd_reader.c

Modified: trunk/libdvdread/src/dvd_reader.c
==============================================================================
--- trunk/libdvdread/src/dvd_reader.c	Tue Jul 20 09:51:43 2010	(r1200)
+++ trunk/libdvdread/src/dvd_reader.c	Tue Jul 20 09:55:32 2010	(r1201)
@@ -341,7 +341,7 @@ dvd_reader_t *DVDOpen( const char *ppath
   char *dev_name = NULL;
   char *path = NULL, *new_path = NULL, *path_copy = NULL;
 
-#ifdef _WIN32
+#if defined(_WIN32) || defined(__OS2__)
       int len;
 #endif
 
@@ -355,7 +355,7 @@ dvd_reader_t *DVDOpen( const char *ppath
   /* Try to open libdvdcss or fall back to standard functions */
   have_css = dvdinput_setup();
 
-#ifdef _WIN32
+#if defined(_WIN32) || defined(__OS2__)
   /* Strip off the trailing \ if it is not a drive */
   len = strlen(path);
   if ((len > 1) &&


More information about the DVDnav-discuss mailing list