From e6eade37ae968384b6587fa385c77cf63b9a7a97 Mon Sep 17 00:00:00 2001 From: "Adam D. Ruppe" Date: Mon, 28 Mar 2022 11:52:11 -0400 Subject: [PATCH] oops windows --- simpledisplay.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simpledisplay.d b/simpledisplay.d index 8bce6c8..2c782ee 100644 --- a/simpledisplay.d +++ b/simpledisplay.d @@ -9903,7 +9903,7 @@ void sdpyPrintDebugString(string fileOverride = null, T...)(T t) nothrow @truste try { version(Windows) { import core.sys.windows.wincon; - if(AttachConsole(ATTACH_PARENT_PROCESS)) + if(!AttachConsole(ATTACH_PARENT_PROCESS)) AllocConsole(); const(char)* fn = "CONOUT$"; } else version(Posix) {