do the win32api thing if it's mingw. thanks Ludovic Courgnaud

git-svn-id: file:///home/svn/framework3/trunk@11651 4d416f70-5f16-0410-b530-b9f4589650da
unstable
James Lee 2011-01-26 19:20:45 +00:00
parent 21d93be897
commit 47a706962a
1 changed files with 1 additions and 1 deletions

View File

@ -121,7 +121,7 @@ def self.open_browser(url='http://metasploit.com/')
end
return if not @@loaded_win32api
Win32API.new("shell32.dll", "ShellExecute", ["PPPPPL"], "L").call(nil, "open", url, nil, nil, 0)
when /mswin32/
when /mswin32|mingw/
return if not @@loaded_win32api
Win32API.new("shell32.dll", "ShellExecute", ["PPPPPL"], "L").call(nil, "open", url, nil, nil, 0)
when /darwin/