Commit 978e03ea authored by Andrew Eikum's avatar Andrew Eikum Committed by Alexandre Julliard

shell32: Always create default known folder directories.

Some applications query for the default path, but this would fail on older prefixes where the new default path was never created. Signed-off-by: 's avatarAndrew Eikum <aeikum@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 24d0d6f5
......@@ -4688,6 +4688,13 @@ static HRESULT _SHRegisterFolders(HKEY hRootKey, HANDLE hToken,
}
}
}
else
{
/* create the default dir, which may be different from the path
* stored in the registry. */
SHGetFolderPathW(NULL, folders[i] | CSIDL_FLAG_CREATE,
hToken, SHGFP_TYPE_DEFAULT, path);
}
}
if (hUserKey)
RegCloseKey(hUserKey);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment