changeset 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 d9b11d83367f
children 5ce6348b1a6e
files subreader.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
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