Ver código fonte

Unneeded addition

Source commit: 0c1d3095597339e66cff40ecd05e717e0f6a2757
Martin Prikryl 1 ano atrás
pai
commit
f60ee8ae79
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      source/core/SessionData.cpp

+ 1 - 1
source/core/SessionData.cpp

@@ -1637,7 +1637,7 @@ static UnicodeString ConvertPathFromOpenssh(const UnicodeString & Path)
   // (e.g. when converting keys) work suboptimally when working with forward slashes.
   // (e.g. when converting keys) work suboptimally when working with forward slashes.
   UnicodeString Result = GetNormalizedPath(Path);
   UnicodeString Result = GetNormalizedPath(Path);
   const UnicodeString HomePathPrefix = L"~";
   const UnicodeString HomePathPrefix = L"~";
-  if (StartsStr(HomePathPrefix, Result + L"\\"))
+  if (StartsStr(HomePathPrefix, Result))
   {
   {
     Result =
     Result =
       GetShellFolderPath(CSIDL_PROFILE) +
       GetShellFolderPath(CSIDL_PROFILE) +