Commit 154cfa6b authored by Geoffroy Couprie's avatar Geoffroy Couprie Committed by Jean-Paul Saman

include/vlc_fs.h: Windows: use _wrewinddir instead of rewinddir

vlc_scandir() uses vlc_loaddir() whichs calls rewinddir. Under Windows this
results in a segmentation fault.
parent 8d61e150
......@@ -46,6 +46,15 @@ VLC_EXPORT( int, vlc_rename, ( const char *oldpath, const char *newpath ) );
#if defined( WIN32 ) && !defined( UNDER_CE )
# define stat _stati64
static inline void vlc_rewinddir( DIR *dir )
{
_WDIR *wdir = *(_WDIR **)dir;
_wrewinddir( wdir );
}
# undef rewinddir
# define rewinddir vlc_rewinddir
#endif
VLC_EXPORT( int, vlc_stat, ( const char *filename, struct stat *buf ) );
......
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