Commit 710eec8f authored by Tim Clem's avatar Tim Clem Committed by Alexandre Julliard

shell32: Don't fall back to $HOME for missing user special folders.

Fall through in create_link and allow SHGetFolderPathAndSubDirW to create an empty folder in place if the alternatives are not available. Creating a link back to $HOME makes a recursive directory structure, which results in crashes in programs that naively search %USERPROFILE% (e.g. Quicken).
parent 788a6122
......@@ -2767,10 +2767,7 @@ static void create_link( const WCHAR *path, const char *xdg_name, const char *de
{
if (link_folder( mgr, &nt_name, target )) goto done;
}
if (link_folder( mgr, &nt_name, default_name )) goto done;
/* fall back to HOME */
link_folder( mgr, &nt_name, "$HOME" );
link_folder( mgr, &nt_name, default_name );
done:
RtlFreeUnicodeString( &nt_name );
......
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