Set ShellExecuteW's verb to NULL - fixes #33388

from https://docs.microsoft.com/en-us/windows/win32/api/shellapi/nf-shellapi-shellexecutew

>the default verb is used, if available. If not, the "open" verb is used. If neither verb is available, the system uses the first verb listed in the registry.

so "open" is redundant at best
This commit is contained in:
piratesephiroth 2019-11-09 07:59:15 -03:00 committed by GitHub
parent 0ab0d11c17
commit 778b421973
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2988,7 +2988,7 @@ void OS_Windows::move_window_to_foreground() {
Error OS_Windows::shell_open(String p_uri) {
ShellExecuteW(NULL, L"open", p_uri.c_str(), NULL, NULL, SW_SHOWNORMAL);
ShellExecuteW(NULL, NULL, p_uri.c_str(), NULL, NULL, SW_SHOWNORMAL);
return OK;
}