Commit e854bbff authored by Geoffroy Couprie's avatar Geoffroy Couprie

Win32: fix My Music and My Videos directories access

parent 81f10bb9
......@@ -109,6 +109,7 @@ static char *config_GetAppDir (void)
return psz_dir;
}
#warning FIXME Use known folders on Vista and above
char *config_GetUserDir (vlc_userdir_t type)
{
switch (type)
......@@ -125,14 +126,13 @@ char *config_GetUserDir (vlc_userdir_t type)
case VLC_TEMPLATES_DIR:
case VLC_PUBLICSHARE_DIR:
case VLC_DOCUMENTS_DIR:
return config_GetUserDir(VLC_HOME_DIR);
case VLC_MUSIC_DIR:
#warning FIXME: unimplemented
return config_GetUserDir (VLC_HOME_DIR);
return config_GetShellDir (CSIDL_MYMUSIC);
case VLC_PICTURES_DIR:
return config_GetShellDir (CSIDL_MYPICTURES);
case VLC_VIDEOS_DIR:
#warning FIXME: unimplemented
return config_GetUserDir (VLC_HOME_DIR);
return config_GetShellDir (CSIDL_MYVIDEO);
}
assert (0);
}
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