CVS: winex/dlls/shell32 shellpath.c,1.10,1.11
[email protected] 31 Jul 2007 19:53:14 -0000
| Newsgroups | gmane.comp.emulators.winex.cvs |
|---|---|
| Message-ID | <[email protected]> |
Subject: winex/dlls/shell32 shellpath.c,1.10,1.11Update of /var/lib/cvsd/cvsroot/winex/dlls/shell32
In directory agravaine:/tmp/cvs-serv1500/dlls/shell32
Modified Files:
shellpath.c
Log Message:
- remap "Application Data" to the P drive on the Mac to live alongside "My Documents" as it is supposed to
Index: shellpath.c
===================================================================
RCS file: /var/lib/cvsd/cvsroot/winex/dlls/shell32/shellpath.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- shellpath.c 30 Mar 2007 20:41:52 -0000 1.10
+++ shellpath.c 31 Jul 2007 19:53:12 -0000 1.11
@@ -797,7 +797,7 @@
"All Users\\Desktop"
},
{ /* CSIDL_APPDATA */
- 9, HKCU,
+ CSIDL_MYFLAG_USERPREFS | CSIDL_MYFLAG_SHFOLDER, HKCU,
"AppData",
"Application Data"
},
@@ -1057,6 +1057,11 @@
{
strcpy(szPath, "C:\\");
strcat(szPath, szDefaultPath);
+
+ /* To minimize the number of empty directories we have to
+ manually have created in our packages */
+ if (dwFlags & CSIDL_MYFLAG_USERPREFS)
+ bCreate = TRUE;
}
RegSetValueExA(hKey,szValueName,0,REG_SZ,(LPBYTE)szPath,strlen(szPath)+1);
}
@@ -1112,6 +1117,11 @@
{
strcpy(szPath, "C:\\");
strcat(szPath, szDefaultPath);
+
+ /* To minimize the number of empty directories we have to
+ manually have created in our packages */
+ if (dwFlags & CSIDL_MYFLAG_USERPREFS)
+ bCreate = TRUE;
}
RegSetValueExA(hKey,szValueName,0,REG_SZ,(LPBYTE)szPath,strlen(szPath)+1);
}