Author: phater Date: Tue May 16 17:37:48 2017 New Revision: 74561
URL: http://svn.reactos.org/svn/reactos?rev=74561&view=rev Log: [MSTSC] Enable taking settings folder using SHGetFolderLocation instead of using "c:". Patch by Stas'M. Thanks CORE-13225
Modified: trunk/reactos/base/applications/mstsc/settings.c
Modified: trunk/reactos/base/applications/mstsc/settings.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mstsc/set... ============================================================================== --- trunk/reactos/base/applications/mstsc/settings.c [iso-8859-1] (original) +++ trunk/reactos/base/applications/mstsc/settings.c [iso-8859-1] Tue May 16 17:37:48 2017 @@ -374,7 +374,6 @@ /* use default file */ if (lpFile == NULL) { -#ifndef __REACTOS__ HRESULT hr; LPITEMIDLIST lpidl= NULL;
@@ -392,10 +391,6 @@ CoTaskMemFree(lpidl); } } -#else - wcscpy(pszPath, L"C:\Default.rdp"); - lpFile = pszPath; -#endif }
if (lpFile) @@ -427,7 +422,6 @@ /* use default file */ if (lpFile == NULL) { -#ifndef __REACTOS__ // remove when this is working HRESULT hr; LPITEMIDLIST lpidl= NULL;
@@ -445,10 +439,6 @@ CoTaskMemFree(lpidl); } } -#else - wcscpy(pszPath, L"C:\Default.rdp"); - lpFile = pszPath; -#endif }
if (lpFile)