shithub: libdvdcss

Download patch

ref: e5208cfe7eb1e5f1dd38f5e4ed1d72a8f42a9cc9
parent: 93ad73f7db62a40c2fa97298004d0509ddb8db6c
author: Steve Lhomme <robux@videolan.org>
date: Wed Sep 13 09:12:23 EDT 2006

fallback to USERPROFILE environment variable for caching CSS keys when
HOME is not set (for MinGW builds running outside of MinGW).



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