Commit 9a9f6ed8 authored by KO Myung-Hun's avatar KO Myung-Hun

As for win32 strip off the trailing \ if it is not a drive

on OS/2. 


parent 108d79d8
......@@ -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) &&
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment