Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
e7bcc680
Commit
e7bcc680
authored
Nov 21, 2006
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert broken [17908:17910]
parent
8808f2f0
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
21 deletions
+5
-21
src/extras/libc.c
src/extras/libc.c
+4
-10
src/misc/unicode.c
src/misc/unicode.c
+1
-11
No files found.
src/extras/libc.c
View file @
e7bcc680
...
@@ -416,13 +416,7 @@ void *vlc_opendir_wrapper( const char *psz_path )
...
@@ -416,13 +416,7 @@ void *vlc_opendir_wrapper( const char *psz_path )
return
(
void
*
)
p_dir
;
return
(
void
*
)
p_dir
;
}
}
wchar_t
wpath
[
MAX_PATH
+
1
];
p_real_dir
=
opendir
(
psz_path
);
if
(
!
MultiByteToWideChar
(
CP_UTF8
,
0
,
psz_path
,
-
1
,
wpath
,
MAX_PATH
))
return
NULL
;
wpath
[
MAX_PATH
]
=
L'\0'
;
p_real_dir
=
_wopendir
(
wpath
);
if
(
p_real_dir
==
NULL
)
if
(
p_real_dir
==
NULL
)
return
NULL
;
return
NULL
;
...
@@ -451,7 +445,7 @@ struct dirent *vlc_readdir_wrapper( void *_p_dir )
...
@@ -451,7 +445,7 @@ struct dirent *vlc_readdir_wrapper( void *_p_dir )
return
&
p_dir
->
dd_dir
;
return
&
p_dir
->
dd_dir
;
}
}
return
_w
readdir
(
p_dir
->
p_real_dir
);
return
readdir
(
p_dir
->
p_real_dir
);
}
}
/* Drive letters mode */
/* Drive letters mode */
...
@@ -477,7 +471,7 @@ int vlc_closedir_wrapper( void *_p_dir )
...
@@ -477,7 +471,7 @@ int vlc_closedir_wrapper( void *_p_dir )
if
(
p_dir
->
p_real_dir
!=
NULL
)
if
(
p_dir
->
p_real_dir
!=
NULL
)
{
{
int
i_ret
=
_w
closedir
(
p_dir
->
p_real_dir
);
int
i_ret
=
closedir
(
p_dir
->
p_real_dir
);
free
(
p_dir
);
free
(
p_dir
);
return
i_ret
;
return
i_ret
;
}
}
...
...
src/misc/unicode.c
View file @
e7bcc680
...
@@ -429,11 +429,7 @@ int utf8_mkdir( const char *dirname )
...
@@ -429,11 +429,7 @@ int utf8_mkdir( const char *dirname )
void
*
utf8_opendir
(
const
char
*
dirname
)
void
*
utf8_opendir
(
const
char
*
dirname
)
{
{
/* TODO: support for WinNT non-ACP filenames */
#if defined (UNDER_CE) || defined (WIN32)
DIR
*
dir
=
vlc_opendir_wrapper
(
dirname
);
return
dir
;
#else
const
char
*
local_name
=
ToLocale
(
dirname
);
const
char
*
local_name
=
ToLocale
(
dirname
);
if
(
local_name
!=
NULL
)
if
(
local_name
!=
NULL
)
...
@@ -444,8 +440,6 @@ void *utf8_opendir( const char *dirname )
...
@@ -444,8 +440,6 @@ void *utf8_opendir( const char *dirname )
}
}
else
else
errno
=
ENOENT
;
errno
=
ENOENT
;
#endif
return
NULL
;
return
NULL
;
}
}
...
@@ -458,11 +452,7 @@ char *utf8_readdir( void *dir )
...
@@ -458,11 +452,7 @@ char *utf8_readdir( void *dir )
if
(
ent
==
NULL
)
if
(
ent
==
NULL
)
return
NULL
;
return
NULL
;
#if defined (UNDER_CE) || defined (WIN32)
return
FromWide
(
ent
->
d_name
);
#else
return
vlc_fix_readdir
(
ent
->
d_name
);
return
vlc_fix_readdir
(
ent
->
d_name
);
#endif
}
}
static
int
dummy_select
(
const
char
*
str
)
static
int
dummy_select
(
const
char
*
str
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment