shithub: libdvdcss

Download patch

ref: e9be7c5685e562fbdc286936a4b4876c03e2afa7
parent: dd7d9ded5c500dd219272dfb42ec9bdc3e8b44e5
author: Diego Biurrun <diego@biurrun.de>
date: Mon Nov 3 07:00:35 EST 2014

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.

--- a/src/libdvdcss.c
+++ b/src/libdvdcss.c
@@ -261,10 +261,6 @@
         {
             psz_home = getenv( "HOME" );
         }
-        if( psz_home == NULL )
-        {
-            psz_home = getenv( "USERPROFILE" );
-        }
 
         /* Cache our keys in ${HOME}/.dvdcss/ */
         if( psz_home )