Remove the code path which falls back to symlinking User Profile media directories to the user's $HOME directory. End users will not appreciate having their $HOME directory (potentially) filled up with Windows-related files / directories. Remove unnecessary code comment, about directory removal.
Signed-off-by: Rob Walker bob.mt.wya@gmail.com --- dlls/shell32/shellpath.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-)
diff --git a/dlls/shell32/shellpath.c b/dlls/shell32/shellpath.c index 0e2ee2e263..cf4d9ffbd0 100644 --- a/dlls/shell32/shellpath.c +++ b/dlls/shell32/shellpath.c @@ -4465,12 +4465,11 @@ static void _SHCreateSymbolicLinks(void) && S_ISDIR(statFolder.st_mode); }
- /* Target the '$HOME' folder directly (fallback). */ - if (!target_ok) - strcpy(szPersonalTarget, pszHome); - - remove(pszPersonal); - symlink(szPersonalTarget, pszPersonal); + if (target_ok) + { + remove(pszPersonal); + symlink(szPersonalTarget, pszPersonal); + } }
/* Create symbolic links for 'My Pictures', 'My Videos' and 'My Music'. */