Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
3d1a131f
Commit
3d1a131f
authored
Nov 21, 2006
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use non wide char functions on windows 9x
parent
08936b3b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
3 deletions
+14
-3
src/extras/libc.c
src/extras/libc.c
+14
-3
No files found.
src/extras/libc.c
View file @
3d1a131f
...
@@ -426,6 +426,10 @@ void *vlc_opendir_wrapper( const char *psz_path )
...
@@ -426,6 +426,10 @@ void *vlc_opendir_wrapper( const char *psz_path )
wpath
[
MAX_PATH
]
=
L'\0'
;
wpath
[
MAX_PATH
]
=
L'\0'
;
p_real_dir
=
_wopendir
(
wpath
);
p_real_dir
=
_wopendir
(
wpath
);
}
}
else
{
p_real_dir
=
opendir
(
psz_path
);
}
if
(
p_real_dir
==
NULL
)
if
(
p_real_dir
==
NULL
)
return
NULL
;
return
NULL
;
...
@@ -455,7 +459,10 @@ struct dirent *vlc_readdir_wrapper( void *_p_dir )
...
@@ -455,7 +459,10 @@ struct dirent *vlc_readdir_wrapper( void *_p_dir )
return
&
p_dir
->
dd_dir
;
return
&
p_dir
->
dd_dir
;
}
}
if
(
GetVersion
()
<
0x80000000
)
return
_wreaddir
(
p_dir
->
p_real_dir
);
return
_wreaddir
(
p_dir
->
p_real_dir
);
else
return
readdir
(
p_dir
->
p_real_dir
);
}
}
/* Drive letters mode */
/* Drive letters mode */
...
@@ -481,7 +488,11 @@ int vlc_closedir_wrapper( void *_p_dir )
...
@@ -481,7 +488,11 @@ int vlc_closedir_wrapper( void *_p_dir )
if
(
p_dir
->
p_real_dir
!=
NULL
)
if
(
p_dir
->
p_real_dir
!=
NULL
)
{
{
int
i_ret
=
_wclosedir
(
p_dir
->
p_real_dir
);
int
i_ret
;
if
(
GetVersion
()
<
0x80000000
)
i_ret
=
_wclosedir
(
p_dir
->
p_real_dir
);
else
i_ret
=
closedir
(
p_dir
->
p_real_dir
);
free
(
p_dir
);
free
(
p_dir
);
return
i_ret
;
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