Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
cec120d5
Commit
cec120d5
authored
Nov 21, 2006
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use only wide char functions, on win9x too
win9x testers, raise your hand
parent
3d1a131f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
22 deletions
+7
-22
src/extras/libc.c
src/extras/libc.c
+7
-22
No files found.
src/extras/libc.c
View file @
cec120d5
...
...
@@ -416,20 +416,12 @@ void *vlc_opendir_wrapper( const char *psz_path )
return
(
void
*
)
p_dir
;
}
if
(
GetVersion
()
<
0x80000000
)
{
/* for Windows NT and above */
wchar_t
wpath
[
MAX_PATH
+
1
];
wchar_t
wpath
[
MAX_PATH
+
1
];
if
(
!
MultiByteToWideChar
(
CP_UTF8
,
0
,
psz_path
,
-
1
,
wpath
,
MAX_PATH
))
return
NULL
;
wpath
[
MAX_PATH
]
=
L'\0'
;
p_real_dir
=
_wopendir
(
wpath
);
}
else
{
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
)
return
NULL
;
...
...
@@ -459,10 +451,7 @@ struct dirent *vlc_readdir_wrapper( void *_p_dir )
return
&
p_dir
->
dd_dir
;
}
if
(
GetVersion
()
<
0x80000000
)
return
_wreaddir
(
p_dir
->
p_real_dir
);
else
return
readdir
(
p_dir
->
p_real_dir
);
return
_wreaddir
(
p_dir
->
p_real_dir
);
}
/* Drive letters mode */
...
...
@@ -488,11 +477,7 @@ int vlc_closedir_wrapper( void *_p_dir )
if
(
p_dir
->
p_real_dir
!=
NULL
)
{
int
i_ret
;
if
(
GetVersion
()
<
0x80000000
)
i_ret
=
_wclosedir
(
p_dir
->
p_real_dir
);
else
i_ret
=
closedir
(
p_dir
->
p_real_dir
);
int
i_ret
=
_wclosedir
(
p_dir
->
p_real_dir
);
free
(
p_dir
);
return
i_ret
;
}
...
...
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