[vlc-devel] commit: ConfigDir mess up on windows. (Jean-Baptiste Kempf )

git version control git at videolan.org
Thu Sep 18 02:48:23 CEST 2008


vlc | branch: 0.9-bugfix | Jean-Baptiste Kempf <jb at videolan.org> | Wed Sep 17 17:50:25 2008 -0700| [7913a11655e79e18b3c794282a69c2aeaacb92d0] | committer: Jean-Baptiste Kempf 

ConfigDir mess up on windows.
(cherry picked from commit ec2e9e013e3ccdf60ef9303fa50683b251408026)

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

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

diff --git a/src/config/dirs.c b/src/config/dirs.c
index abeb537..5877b4b 100644
--- a/src/config/dirs.c
+++ b/src/config/dirs.c
@@ -87,8 +87,8 @@ static const char *GetDir( bool b_appdata, bool b_common_appdata )
 # else
     /* Get the "Application Data" folder for the current user */
     if( S_OK == SHGetFolderPathW( NULL,
-              (b_appdata ? CSIDL_APPDATA :
-               (b_common_appdata ? CSIDL_PERSONAL : CSIDL_COMMON_APPDATA))
+              ( b_appdata ? CSIDL_APPDATA :
+               ( b_common_appdata ? CSIDL_COMMON_APPDATA: CSIDL_PERSONAL ) )
               | CSIDL_FLAG_CREATE,
                                   NULL, SHGFP_TYPE_CURRENT, wdir ) )
 # endif




More information about the vlc-devel mailing list