oops windows

This commit is contained in:
Adam D. Ruppe 2022-03-28 11:52:11 -04:00
parent 49829f3f48
commit e6eade37ae
1 changed files with 1 additions and 1 deletions

View File

@ -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) {