[vlc-devel] commit: Take win32 into considiration. (Jean-Paul Saman )
git version control
git at videolan.org
Sat Jun 14 16:18:25 CEST 2008
vlc | branch: master | Jean-Paul Saman <jpsaman at videolan.org> | Sat Jun 14 13:56:58 2008 +0200| [0a54676f99e9dfe2461c3c6b893400357f68c440]
Take win32 into considiration.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0a54676f99e9dfe2461c3c6b893400357f68c440
---
src/modules/modules.c | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/src/modules/modules.c b/src/modules/modules.c
index eeabe10..cfc313a 100644
--- a/src/modules/modules.c
+++ b/src/modules/modules.c
@@ -874,14 +874,21 @@ static char * copy_next_paths_token( char * paths, char ** remaining_paths )
if( !path ) return NULL;
/* Look for PATH_SEP_CHAR (a ':' or a ';') */
- for( i = 0, done = 0 ; paths[i]; i++ ) {
+ for( i = 0, done = 0 ; paths[i]; i++ )
+ {
/* Take care of \\ and \: or \; escapement */
- if( escaped ) {
+ if( escaped )
+ {
escaped = false;
path[done++] = paths[i];
}
+#ifdef WIN32
+ else if( paths[i] == '/' )
+ escaped = true;
+#else
else if( paths[i] == '\\' )
escaped = true;
+#endif
else if( paths[i] == PATH_SEP_CHAR )
break;
else
More information about the vlc-devel
mailing list