[matroska] r901 - trunk/DvdMenuXtractor/libdvdread/dvdread

[email protected]
Newsgroups gmane.comp.multimedia.matroska.cvs
Message-ID <[email protected]>
Author: robux4
Date: 2004-10-20 01:09:55 +0400 (Wed, 20 Oct 2004)
New Revision: 901

Modified:
   trunk/DvdMenuXtractor/libdvdread/dvdread/dvd_reader.c
Log:
win32 fix in libdvdread

Modified: trunk/DvdMenuXtractor/libdvdread/dvdread/dvd_reader.c
===================================================================
--- trunk/DvdMenuXtractor/libdvdread/dvdread/dvd_reader.c	2004-10-19 19:52:44 UTC (rev 900)
+++ trunk/DvdMenuXtractor/libdvdread/dvdread/dvd_reader.c	2004-10-19 21:09:55 UTC (rev 901)
@@ -393,6 +393,10 @@
 	if( strlen( path_copy ) > 1 ) {
 	    if( path_copy[ strlen( path_copy ) - 1 ] == '/' ) 
 		path_copy[ strlen( path_copy ) - 1 ] = '\0';
+#if defined(WIN32)
+	    if( path_copy[ strlen( path_copy ) - 1 ] == '\\' ) 
+		path_copy[ strlen( path_copy ) - 1 ] = '\0';
+#endif
 	}
 
 	if( strlen( path_copy ) > 9 ) {
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.