[vlc-devel] commit: Win32: fix My Music and My Videos directories access ( Geoffroy Couprie )

git version control git at videolan.org
Mon Sep 7 16:46:29 CEST 2009


vlc | branch: master | Geoffroy Couprie <geal at videolan.org> | Sun Sep  6 20:11:02 2009 +0200| [e854bbff4092872fe4a46afce328d2c2ced6cb6e] | committer: Geoffroy Couprie 

Win32: fix My Music and My Videos directories access

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e854bbff4092872fe4a46afce328d2c2ced6cb6e
---

 src/config/dirs_win.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/config/dirs_win.c b/src/config/dirs_win.c
index d7bef3e..65d7aef 100644
--- a/src/config/dirs_win.c
+++ b/src/config/dirs_win.c
@@ -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);
 }




More information about the vlc-devel mailing list