Mercurial > libdvdread4.hg
changeset 53:f7e7938944e9 src
As for win32 strip off the trailing \ if it is not a drive
on OS/2. Patch by Komh chollian net
author | nicodvb |
---|---|
date | Tue, 20 Jul 2010 07:55:32 +0000 |
parents | 645a8b52b951 |
children | de60b270bd83 |
files | dvd_reader.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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) &&