From 47a706962a8cf3a4bad22140fa743e292f74845b Mon Sep 17 00:00:00 2001 From: James Lee Date: Wed, 26 Jan 2011 19:20:45 +0000 Subject: [PATCH] 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 --- lib/rex/compat.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rex/compat.rb b/lib/rex/compat.rb index 3a9c86eb17..3f1e84888b 100644 --- a/lib/rex/compat.rb +++ b/lib/rex/compat.rb @@ -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/