Commit 1950e19e authored by Sam Hocevar's avatar Sam Hocevar

* ./src/misc/modules.c: hmpf, Wine does not complain about "/"s in paths,

    but Windoze will certainly do.
parent 2fe5a2c7
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* modules.c : Builtin and plugin modules management functions * modules.c : Builtin and plugin modules management functions
***************************************************************************** *****************************************************************************
* Copyright (C) 2001 VideoLAN * Copyright (C) 2001 VideoLAN
* $Id: modules.c,v 1.112 2003/02/17 05:50:31 sam Exp $ * $Id: modules.c,v 1.113 2003/02/17 06:00:24 sam Exp $
* *
* Authors: Samuel Hocevar <sam@zoy.org> * Authors: Samuel Hocevar <sam@zoy.org>
* Ethan C. Baldridge <BaldridgeE@cadmus.com> * Ethan C. Baldridge <BaldridgeE@cadmus.com>
...@@ -589,8 +589,13 @@ static void AllocateAllPlugins( vlc_object_t *p_this ) ...@@ -589,8 +589,13 @@ static void AllocateAllPlugins( vlc_object_t *p_this )
{ {
continue; continue;
} }
#ifdef WIN32
sprintf( psz_fullpath, "%s\\%s",
p_this->p_libvlc->psz_vlcpath, *ppsz_path );
#else
sprintf( psz_fullpath, "%s/%s", sprintf( psz_fullpath, "%s/%s",
p_this->p_libvlc->psz_vlcpath, *ppsz_path ); p_this->p_libvlc->psz_vlcpath, *ppsz_path );
#endif
} }
else else
#endif #endif
...@@ -705,7 +710,11 @@ static void AllocatePluginDir( vlc_object_t *p_this, const MYCHAR *psz_dir, ...@@ -705,7 +710,11 @@ static void AllocatePluginDir( vlc_object_t *p_this, const MYCHAR *psz_dir,
i_len = strlen( file->d_name ); i_len = strlen( file->d_name );
psz_file = malloc( i_dirlen + 1 + i_len + 1 ); psz_file = malloc( i_dirlen + 1 + i_len + 1 );
#ifdef WIN32
sprintf( psz_file, "%s\\%s", psz_dir, file->d_name );
#else
sprintf( psz_file, "%s/%s", psz_dir, file->d_name ); sprintf( psz_file, "%s/%s", psz_dir, file->d_name );
#endif
if( !stat( psz_file, &statbuf ) && statbuf.st_mode & S_IFDIR ) if( !stat( psz_file, &statbuf ) && statbuf.st_mode & S_IFDIR )
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment