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

Alexandre Julliard julliard at wine.codeweavers.com
Mon Jan 5 15:01:27 CST 2015


Module: wine
Branch: master
Commit: 169923d4b9f616a56472156e518952aa22c0f5c1
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=169923d4b9f616a56472156e518952aa22c0f5c1

Author: Francois Gouget <fgouget at codeweavers.com>
Date:   Mon Jan  5 19:27:42 2015 +0100

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

---

 dlls/shell32/shellpath.c | 1 +
 1 file changed, 1 insertion(+)

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




More information about the wine-cvs mailing list