mirror of
https://github.com/mpv-player/mpv
synced 2025-02-07 15:41:55 +00:00
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 git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26087 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
c9836ea2b0
commit
1cd1c92fb7
@ -1835,8 +1835,9 @@ char** sub_filenames(const char* path, char *fname)
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user