Commit 93ad73f7 authored by Steve Lhomme's avatar Steve Lhomme
Browse files

now accepts X:\ as a device name, as well as X:

parent 4b0fa47c
...@@ -295,8 +295,11 @@ int _dvdcss_open ( dvdcss_t dvdcss ) ...@@ -295,8 +295,11 @@ int _dvdcss_open ( dvdcss_t dvdcss )
print_debug( dvdcss, "opening target `%s'", psz_device ); print_debug( dvdcss, "opening target `%s'", psz_device );
#if defined( WIN32 ) #if defined( WIN32 )
/* If device is not "X:", we are actually opening a file. */ dvdcss->b_file = 1;
dvdcss->b_file = !psz_device[0] || psz_device[1] != ':' || psz_device[2]; /* If device is "X:" or "X:\", we are not actually opening a file. */
if (psz_device[0] && psz_device[1] == ':' &&
(!psz_device[2] || (psz_device[2] == '\\' && !psz_device[3])))
dvdcss->b_file = 0;
/* Initialize readv temporary buffer */ /* Initialize readv temporary buffer */
dvdcss->p_readv_buffer = NULL; dvdcss->p_readv_buffer = NULL;
......
Supports Markdown
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