diff options
author | piratesephiroth <piratesephiroth@users.noreply.github.com> | 2019-11-09 07:59:15 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-09 07:59:15 -0300 |
commit | 778b421973f97841e969d7305d95b1312c454d12 (patch) | |
tree | 4b927347e9a98bcd66ca8fe72652ed0c1ca731bd /platform | |
parent | 0ab0d11c17dd58ac35335cabd032409c42a41a94 (diff) |
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
Diffstat (limited to 'platform')
-rwxr-xr-x | platform/windows/os_windows.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/windows/os_windows.cpp b/platform/windows/os_windows.cpp index e73cfcf241..429657f332 100755 --- a/platform/windows/os_windows.cpp +++ b/platform/windows/os_windows.cpp @@ -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; } |