# HG changeset patch # User nicodvb # Date 1279612532 0 # Node ID f7e7938944e9f29dfa3fad47351a9ed3b3ebbf7e # Parent 645a8b52b951d7ebac79b3db78b8e0cb2b5a25ec As for win32 strip off the trailing \ if it is not a drive on OS/2. Patch by Komh chollian net diff -r 645a8b52b951 -r f7e7938944e9 dvd_reader.c --- a/dvd_reader.c Tue Jul 20 07:51:43 2010 +0000 +++ b/dvd_reader.c Tue Jul 20 07:55:32 2010 +0000 @@ -341,7 +341,7 @@ 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 @@ /* 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) &&