From f5c285da13b6b614931503650e6e2ff710929a23 Mon Sep 17 00:00:00 2001 From: Peter Hater <7element@mail.bg> Date: Tue, 16 May 2017 17:37:48 +0000 Subject: [PATCH] [MSTSC] Enable taking settings folder using SHGetFolderLocation instead of using "c:\". Patch by Stas'M. Thanks CORE-13225 svn path=/trunk/; revision=74561 --- reactos/base/applications/mstsc/settings.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/reactos/base/applications/mstsc/settings.c b/reactos/base/applications/mstsc/settings.c index 22b2d28c1a6..4aaa2aacab7 100644 --- a/reactos/base/applications/mstsc/settings.c +++ b/reactos/base/applications/mstsc/settings.c @@ -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) -- 2.17.1