mirror of
https://github.com/reactos/reactos.git
synced 2024-09-30 22:47:28 +00:00
[URLCACHE]
Do not initialize the URL-Cache for a system process. Patch will be submitted to WINE. See issue #5372 for more details. svn path=/trunk/; revision=50916
This commit is contained in:
parent
66feb11cfe
commit
d3b52209a4
|
@ -527,6 +527,7 @@ void URLCacheContainers_CreateDefaults(void)
|
|||
static const WCHAR HistoryPrefix[] = {'V','i','s','i','t','e','d',':',0};
|
||||
static const WCHAR CookieSuffix[] = {0};
|
||||
static const WCHAR CookiePrefix[] = {'C','o','o','k','i','e',':',0};
|
||||
static const WCHAR UserProfile[] = {'U','S','E','R','P','R','O','F','I','L','E',0};
|
||||
static const struct
|
||||
{
|
||||
int nFolder; /* CSIDL_* constant */
|
||||
|
@ -540,6 +541,12 @@ void URLCacheContainers_CreateDefaults(void)
|
|||
};
|
||||
DWORD i;
|
||||
|
||||
if (GetEnvironmentVariableW(UserProfile, NULL, 0) == 0 && GetLastError() == ERROR_ENVVAR_NOT_FOUND)
|
||||
{
|
||||
TRACE("Environment variable 'USERPROFILE' does not exist!\n");
|
||||
return;
|
||||
}
|
||||
|
||||
for (i = 0; i < sizeof(DefaultContainerData) / sizeof(DefaultContainerData[0]); i++)
|
||||
{
|
||||
WCHAR wszCachePath[MAX_PATH];
|
||||
|
|
Loading…
Reference in a new issue