[MSTSC] Enable taking settings folder using SHGetFolderLocation instead of using "c:\". Patch by Stas'M. Thanks CORE-13225

svn path=/trunk/; revision=74561
This commit is contained in:
Peter Hater 2017-05-16 17:37:48 +00:00
parent 450b66d358
commit f5c285da13

View file

@ -374,7 +374,6 @@ SaveRdpSettingsToFile(LPWSTR lpFile,
/* use default file */
if (lpFile == NULL)
{
#ifndef __REACTOS__
HRESULT hr;
LPITEMIDLIST lpidl= NULL;
@ -392,10 +391,6 @@ SaveRdpSettingsToFile(LPWSTR lpFile,
CoTaskMemFree(lpidl);
}
}
#else
wcscpy(pszPath, L"C:\\Default.rdp");
lpFile = pszPath;
#endif
}
if (lpFile)
@ -427,7 +422,6 @@ LoadRdpSettingsFromFile(PRDPSETTINGS pRdpSettings,
/* use default file */
if (lpFile == NULL)
{
#ifndef __REACTOS__ // remove when this is working
HRESULT hr;
LPITEMIDLIST lpidl= NULL;
@ -445,10 +439,6 @@ LoadRdpSettingsFromFile(PRDPSETTINGS pRdpSettings,
CoTaskMemFree(lpidl);
}
}
#else
wcscpy(pszPath, L"C:\\Default.rdp");
lpFile = pszPath;
#endif
}
if (lpFile)