Re: [libdvdcss-devel] [PATCH] win32: Do not try to create cache directory in %USERPROFILE%

Diego Biurrun <[email protected]> Mon, 3 Nov 2014 14:11:51 +0100
Newsgroups gmane.comp.video.videolan.libdvdcss,gmane.comp.video.videolan.libdvdcss.devel
Message-ID <20141103131151.GP30310@nibbler>
On Mon, Nov 03, 2014 at 02:05:51PM +0100, Jean-Baptiste Kempf wrote:
> On 03 Nov, Diego Biurrun wrote :
> > Applications should rather store app-specific data in %APPDATA%.
> > Furthermore %USERPROFILE% is only referenced in a code branch
> > that would apply to obsolete Windows versions.
> 
> Many enterprise setup still depend on that behaviour.

What setups are those?

Note that the code goes like this:

#if defined(_WIN32_IE) && _WIN32_IE >= 0x500
...
#else
...
   if( psz_home == NULL )
        psz_home = getenv( "USERPROFILE" );
...
#endif

So the code is only executed in the non-Windows part of the function since
_WIN32_IE is set to that value for all Windows toolchains by configure.

Diego
_______________________________________________
libdvdcss-devel mailing list
[email protected]
https://mailman.videolan.org/listinfo/libdvdcss-devel