Changeset 1950e19e2d431d2f17aed6592eec6a76bfe1ada7
- 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
| r2fe5a2c |
r1950e19 |
|
| 3 | 3 | ***************************************************************************** |
|---|
| 4 | 4 | * 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 $ |
|---|
| 6 | 6 | * |
|---|
| 7 | 7 | * Authors: Samuel Hocevar <sam@zoy.org> |
|---|
| … | … | |
| 590 | 590 | continue; |
|---|
| 591 | 591 | } |
|---|
| | 592 | #ifdef WIN32 |
|---|
| | 593 | sprintf( psz_fullpath, "%s\\%s", |
|---|
| | 594 | p_this->p_libvlc->psz_vlcpath, *ppsz_path ); |
|---|
| | 595 | #else |
|---|
| 592 | 596 | sprintf( psz_fullpath, "%s/%s", |
|---|
| 593 | 597 | p_this->p_libvlc->psz_vlcpath, *ppsz_path ); |
|---|
| | 598 | #endif |
|---|
| 594 | 599 | } |
|---|
| 595 | 600 | else |
|---|
| … | … | |
| 706 | 711 | i_len = strlen( file->d_name ); |
|---|
| 707 | 712 | 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 |
|---|
| 708 | 716 | sprintf( psz_file, "%s/%s", psz_dir, file->d_name ); |
|---|
| | 717 | #endif |
|---|
| 709 | 718 | |
|---|
| 710 | 719 | if( !stat( psz_file, &statbuf ) && statbuf.st_mode & S_IFDIR ) |
|---|