better diagnostics for win32 console startup

This commit is contained in:
zeromus 2011-07-31 20:13:57 +00:00
parent aff85d5885
commit a71fe428c2
1 changed files with 2 additions and 1 deletions

View File

@ -155,7 +155,7 @@ namespace BizHawk.MultiClient
if (Win32.AllocConsole())
hasConsole = true;
else
System.Windows.Forms.MessageBox.Show("Couldn't allocate win32 console: {0}" + Marshal.GetLastWin32Error());
System.Windows.Forms.MessageBox.Show(string.Format("Couldn't allocate win32 console: {0}", Marshal.GetLastWin32Error()));
}
if(hasConsole)
@ -174,6 +174,7 @@ namespace BizHawk.MultiClient
}
DotNetRewireConout();
hasConsole = true;
if (attachedConsole)
{