mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-04-12 16:48:06 -05:00
Work around a failure in Windows 10 jump lists.
We've had several reports that launching saved sessions from the Windows 10 jump list fails; Changyu Li reports that this is because we create those IShellLink objects with a command line string starting with @, and in Windows 10 that causes the SetArguments method to silently do the wrong thing.
This commit is contained in:
parent
e59ac86ea9
commit
8bf5c1b31f
@ -429,7 +429,11 @@ static IShellLink *make_shell_link(const char *appname,
|
|||||||
ret->lpVtbl->SetPath(ret, app_path);
|
ret->lpVtbl->SetPath(ret, app_path);
|
||||||
|
|
||||||
if (sessionname) {
|
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 {
|
} else {
|
||||||
param_string = dupstr("");
|
param_string = dupstr("");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user