From 5e30675c70e04c526e62733e3ae25e96937bcb35 Mon Sep 17 00:00:00 2001 From: Frederic Bouvier Date: Mon, 8 Aug 2011 23:26:58 +0200 Subject: [PATCH] Fix issue #398: Menubar - Help > Help opens strange path when including space character --- src/GUI/gui_funcs.cxx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/GUI/gui_funcs.cxx b/src/GUI/gui_funcs.cxx index 57adcc26e..9713b45c6 100644 --- a/src/GUI/gui_funcs.cxx +++ b/src/GUI/gui_funcs.cxx @@ -184,17 +184,13 @@ void helpCb () #else // _WIN32 // Look for favorite browser - char Dummy[1024], ExecName[1024], browserParameter[1024]; char win32_name[1024]; # ifdef __CYGWIN__ cygwin32_conv_to_full_win32_path(path.c_str(),win32_name); # else strncpy(win32_name,path.c_str(), 1024); # endif - Dummy[0] = 0; - FindExecutable(win32_name, Dummy, ExecName); - snprintf(browserParameter, 1024, "file:///%s", win32_name); - ShellExecute ( NULL, "open", ExecName, browserParameter, Dummy, + ShellExecute ( NULL, "open", win32_name, NULL, NULL, SW_SHOWNORMAL ) ; #endif