Changeset 1950e19e2d431d2f17aed6592eec6a76bfe1ada7

Show
Ignore:
Timestamp:
02/17/03 07:00:24 (6 years ago)
Author:
Sam Hocevar <sam@videolan.org>
git-committer:
Sam Hocevar <sam@videolan.org> 1045461624 +0000
git-parent:

[2fe5a2c748b2c568ac4977bc1a73309fedc68266]

git-author:
Sam Hocevar <sam@videolan.org> 1045461624 +0000
Message:
  • ./src/misc/modules.c: hmpf, Wine does not complain about "/"s in paths,
    but Windoze will certainly do.
Files:

Legend:

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

    r2fe5a2c r1950e19  
    33 ***************************************************************************** 
    44 * Copyright (C) 2001 VideoLAN 
    5  * $Id: modules.c,v 1.112 2003/02/17 05:50:31 sam Exp $ 
     5 * $Id: modules.c,v 1.113 2003/02/17 06:00:24 sam Exp $ 
    66 * 
    77 * Authors: Samuel Hocevar <sam@zoy.org> 
     
    590590                continue; 
    591591            } 
     592#ifdef WIN32 
     593            sprintf( psz_fullpath, "%s\\%s", 
     594                     p_this->p_libvlc->psz_vlcpath, *ppsz_path ); 
     595#else 
    592596            sprintf( psz_fullpath, "%s/%s", 
    593597                     p_this->p_libvlc->psz_vlcpath, *ppsz_path ); 
     598#endif 
    594599        } 
    595600        else 
     
    706711        i_len = strlen( file->d_name ); 
    707712        psz_file = malloc( i_dirlen + 1 + i_len + 1 ); 
     713#ifdef WIN32 
     714        sprintf( psz_file, "%s\\%s", psz_dir, file->d_name ); 
     715#else 
    708716        sprintf( psz_file, "%s/%s", psz_dir, file->d_name ); 
     717#endif 
    709718 
    710719        if( !stat( psz_file, &statbuf ) && statbuf.st_mode & S_IFDIR )