FOLDERID_LocalAppData should have been FOLDERID_RoamingAppData

This commit is contained in:
Shyotl
2013-09-23 17:55:32 -05:00
parent c47f6405d2
commit 3fcc92ccad

View File

@@ -59,7 +59,7 @@ LLDir_Win32::LLDir_Win32()
if(pSHGetKnownFolderPath)
{
WCHAR* pPath = NULL;
if((*pSHGetKnownFolderPath)(FOLDERID_LocalAppData, 0, NULL, &pPath) == S_OK)
if((*pSHGetKnownFolderPath)(FOLDERID_RoamingAppData, 0, NULL, &pPath) == S_OK)
wcscpy_s(w_str,pPath);
else
SHGetSpecialFolderPath(NULL, w_str, CSIDL_APPDATA, TRUE);