X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fconfig%2Fdirs.c;h=deb789ecee10a7faea920a2b1f0fa673736cb695;hb=14f37b2101842fa6e427f962f689db74eff6faba;hp=5877b4b2f109c9bbd948cb4e827ad91f171f12c6;hpb=ec2e9e013e3ccdf60ef9303fa50683b251408026;p=vlc diff --git a/src/config/dirs.c b/src/config/dirs.c index 5877b4b2f1..deb789ecee 100644 --- a/src/config/dirs.c +++ b/src/config/dirs.c @@ -30,7 +30,9 @@ #if defined( WIN32 ) # define _WIN32_IE IE5 # include +#ifndef UNDER_CE # include +#endif # include #else # include @@ -64,8 +66,7 @@ const char *config_GetDataDir( void ) if( *path == '\0' ) { - snprintf( path, sizeof( path ), "%s" DIR_SEP DIR_SHARE, - vlc_global()->psz_vlcpath ); + snprintf( path, sizeof( path ), "%s" DIR_SEP DIR_SHARE, psz_vlcpath ); path[sizeof( path ) - 1] = '\0'; } return path; @@ -83,6 +84,9 @@ static const char *GetDir( bool b_appdata, bool b_common_appdata ) wchar_t wdir[MAX_PATH]; # if defined (UNDER_CE) + /*There are some errors in cegcc headers*/ +#undef SHGetSpecialFolderPath + BOOL WINAPI SHGetSpecialFolderPath(HWND,LPWSTR,int,BOOL); if( SHGetSpecialFolderPath( NULL, wdir, CSIDL_APPDATA, 1 ) ) # else /* Get the "Application Data" folder for the current user */ @@ -155,7 +159,7 @@ const char *config_GetConfDir( void ) if( *path == '\0' ) { snprintf( path, sizeof( path ), "%s"DIR_SEP DIR_SHARE, /* FIXME: Duh? */ - vlc_global()->psz_vlcpath ); + psz_vlcpath ); path[sizeof( path ) - 1] = '\0'; } return path;