Changeset 0a54676f99e9dfe2461c3c6b893400357f68c440

Show
Ignore:
Timestamp:
06/14/08 16:19:22 (2 months ago)
Author:
Jean-Paul Saman <jpsaman@videolan.org>
git-committer:
Jean-Paul Saman <jpsaman@videolan.org> 1213453162 +0200
git-parent:

[15e55a2f26b2c758b482c5dbe3c7f80188ea67aa]

git-author:
Jean-Paul Saman <jpsaman@videolan.org> 1213444618 +0200
Message:

Take win32 into considiration.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/modules/modules.c

    r6391721 r0a54676  
    875875 
    876876    /* Look for PATH_SEP_CHAR (a ':' or a ';') */ 
    877     for( i = 0, done = 0 ; paths[i]; i++ ) { 
     877    for( i = 0, done = 0 ; paths[i]; i++ ) 
     878    { 
    878879        /* Take care of \\ and \: or \; escapement */ 
    879         if( escaped ) { 
     880        if( escaped ) 
     881        { 
    880882            escaped = false; 
    881883            path[done++] = paths[i]; 
    882884        } 
     885#ifdef WIN32 
     886        else if( paths[i] == '/' ) 
     887            escaped = true; 
     888#else 
    883889        else if( paths[i] == '\\' ) 
    884890            escaped = true; 
     891#endif 
    885892        else if( paths[i] == PATH_SEP_CHAR ) 
    886893            break;