don't detach console on Windows

This commit is contained in:
tildearrow 2023-01-04 20:04:40 -05:00
parent 560ec19176
commit 8c70ac8da3
1 changed files with 0 additions and 4 deletions

View File

@ -22,10 +22,6 @@
typedef HRESULT (*SPDA)(int);
int WINAPI WinMain(HINSTANCE inst, HINSTANCE prevInst, PSTR args, int state) {
if (AttachConsole(ATTACH_PARENT_PROCESS)==0) {
if (GetLastError()==ERROR_ACCESS_DENIED) FreeConsole();
}
int argc=0;
wchar_t** argw=CommandLineToArgvW(GetCommandLineW(),&argc);
char** argv=new char*[argc+1];