X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=windows%2Fwinjump.c;h=eca5041a8dfa949da3e91321d494ffcf354c95c6;hb=af1460d6e5044a3344aaacd15c91cfdcb58578e7;hp=f674133b43d5f42e959eac215f920ffbed797d5f;hpb=0a26bd74e1800a748c24cb24c0bd77abd3fa17dc;p=PuTTY.git diff --git a/windows/winjump.c b/windows/winjump.c index f674133b..eca5041a 100644 --- a/windows/winjump.c +++ b/windows/winjump.c @@ -429,7 +429,11 @@ static IShellLink *make_shell_link(const char *appname, ret->lpVtbl->SetPath(ret, app_path); if (sessionname) { - param_string = dupcat("@", sessionname, NULL); + /* The leading space is reported to work around a Windows 10 + * behaviour change in which an argument string starting with + * '@' causes the SetArguments method to silently do the wrong + * thing. */ + param_string = dupcat(" @", sessionname, NULL); } else { param_string = dupstr(""); }