[libdvdcss-devel] win32: Do not try to create cache directory in %USERPROFILE%
Diego Biurrun
git at videolan.org
Tue Nov 4 10:59:09 CET 2014
libdvdcss | branch: master | Diego Biurrun <diego at biurrun.de> | Mon Nov 3 12:00:35 2014 +0100| [e9be7c5685e562fbdc286936a4b4876c03e2afa7] | committer: Diego Biurrun
win32: Do not try to create cache directory in %USERPROFILE%
Applications should rather store app-specific data in %APPDATA%.
Furthermore %USERPROFILE% is only referenced in a code branch
that would apply to unsupported Windows versions.
> http://git.videolan.org/gitweb.cgi/libdvdcss.git/?a=commit;h=e9be7c5685e562fbdc286936a4b4876c03e2afa7
---
src/libdvdcss.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/src/libdvdcss.c b/src/libdvdcss.c
index 5e2230d..107301f 100644
--- a/src/libdvdcss.c
+++ b/src/libdvdcss.c
@@ -261,10 +261,6 @@ LIBDVDCSS_EXPORT dvdcss_t dvdcss_open ( const char *psz_target )
{
psz_home = getenv( "HOME" );
}
- if( psz_home == NULL )
- {
- psz_home = getenv( "USERPROFILE" );
- }
/* Cache our keys in ${HOME}/.dvdcss/ */
if( psz_home )
More information about the libdvdcss-devel
mailing list