Mercurial > mplayer.hg
diff subreader.c @ 26055:d8e46fa37615
On Win32 and OS/2, 'x:filename' path style without '\' path separator
is possible as well as 'x:\dir\filename' style. So we should check ':'
unless '\' is found.
patch by KO Myung-Hun, komh chollian net
| author | diego |
|---|---|
| date | Sun, 24 Feb 2008 12:40:30 +0000 |
| parents | 9d0b189ce1b2 |
| children | ff5d0c3b8ee6 |
line wrap: on
line diff
--- a/subreader.c Sun Feb 24 12:18:01 2008 +0000 +++ b/subreader.c Sun Feb 24 12:40:30 2008 +0000 @@ -1835,8 +1835,9 @@ subcnt = 0; tmp = strrchr(fname,'/'); -#ifdef WIN32 +#if defined(WIN32) || defined(__OS2__) if(!tmp)tmp = strrchr(fname,'\\'); + if(!tmp)tmp = strrchr(fname,':'); #endif // extract filename & dirname from fname
