Update shortcut.cc

This commit is contained in:
Alexander David Frick 2022-06-07 02:38:20 -07:00 committed by GitHub
parent 8d3345145b
commit 2549b48efe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -133,9 +133,8 @@ bool CreateOrUpdateShortcutLink(const FilePath& shortcut_path,
}
if (properties.options & ShortcutProperties::PROPERTIES_ARGUMENTS) {
if (FAILED(i_shell_link->SetArguments(properties.arguments.c_str()))) {
i_shell_link->SetArguments(L"--autoplay-policy=user-gesture-required");
}}
if (FAILED(i_shell_link->SetArguments(properties.arguments.c_str())))
return false;
} else if (old_i_persist_file.Get()) {
wchar_t current_arguments[MAX_PATH] = {0};
if (SUCCEEDED(