shell32: Reset pszHome if it's not usable so we don't try to reuse it when setting up the Desktop symlink.

This commit is contained in:
Francois Gouget 2015-01-05 19:27:42 +01:00 committed by Alexandre Julliard
parent d7fc48463b
commit 169923d4b9
1 changed files with 1 additions and 0 deletions

View File

@ -2684,6 +2684,7 @@ static void _SHCreateSymbolicLinks(void)
{ {
/* '$HOME' doesn't exist. Create 'My Pictures', 'My Videos' and 'My Music' subdirs /* '$HOME' doesn't exist. Create 'My Pictures', 'My Videos' and 'My Music' subdirs
* in '%USERPROFILE%\\My Documents' or fail silently if they already exist. */ * in '%USERPROFILE%\\My Documents' or fail silently if they already exist. */
pszHome = NULL;
strcpy(szPersonalTarget, pszPersonal); strcpy(szPersonalTarget, pszPersonal);
for (i = 0; i < sizeof(aidsMyStuff)/sizeof(aidsMyStuff[0]); i++) { for (i = 0; i < sizeof(aidsMyStuff)/sizeof(aidsMyStuff[0]); i++) {
strcpy(szMyStuffTarget, szPersonalTarget); strcpy(szMyStuffTarget, szPersonalTarget);