diff options
Diffstat (limited to 'linden/indra/llwindow/llwindowwin32.cpp')
-rw-r--r-- | linden/indra/llwindow/llwindowwin32.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/linden/indra/llwindow/llwindowwin32.cpp b/linden/indra/llwindow/llwindowwin32.cpp index 2944511..a9c7758 100644 --- a/linden/indra/llwindow/llwindowwin32.cpp +++ b/linden/indra/llwindow/llwindowwin32.cpp | |||
@@ -2885,6 +2885,18 @@ S32 OSMessageBoxWin32(const std::string& text, const std::string& caption, U32 t | |||
2885 | return retval; | 2885 | return retval; |
2886 | } | 2886 | } |
2887 | 2887 | ||
2888 | void LLWindowWin32::ShellEx(const std::string& command ) | ||
2889 | { | ||
2890 | LLWString url_wstring = utf8str_to_wstring( command ); | ||
2891 | llutf16string url_utf16 = wstring_to_utf16str( url_wstring ); | ||
2892 | |||
2893 | SHELLEXECUTEINFO sei = { sizeof( sei ) }; | ||
2894 | sei.fMask = SEE_MASK_FLAG_DDEWAIT; | ||
2895 | sei.nShow = SW_SHOWNORMAL; | ||
2896 | sei.lpVerb = L"open"; | ||
2897 | sei.lpFile = url_utf16.c_str(); | ||
2898 | ShellExecuteEx( &sei ); | ||
2899 | } | ||
2888 | 2900 | ||
2889 | void LLWindowWin32::spawnWebBrowser(const std::string& escaped_url ) | 2901 | void LLWindowWin32::spawnWebBrowser(const std::string& escaped_url ) |
2890 | { | 2902 | { |