Support macos

This commit is contained in:
js6pak committed 2022-05-23 23:18:19 +02:00
1 parent 9874a6d0bf
commit ef70314add
1 file changed
+4 -1
@@ -64,7 +64,10 @@ internal class ConsoleWindow
var currWnd = getForeground();
if (!AllocConsole())
throw new Win32Exception("AllocConsole() failed");
{
var error = Marshal.GetLastWin32Error();
if (error != 5) throw new Win32Exception("AllocConsole() failed");
}
// Restore Foreground
setForeground(currWnd);