win32-did not mean to check in this hack
This commit is contained in:
parent
a67f084bbe
commit
25b77c1b31
|
@ -93,14 +93,14 @@ void OpenConsole()
|
||||||
HMODULE lib = LoadLibrary("kernel32.dll");
|
HMODULE lib = LoadLibrary("kernel32.dll");
|
||||||
if(lib)
|
if(lib)
|
||||||
{
|
{
|
||||||
//typedef BOOL (WINAPI *_TAttachConsole)(DWORD dwProcessId);
|
typedef BOOL (WINAPI *_TAttachConsole)(DWORD dwProcessId);
|
||||||
//_TAttachConsole _AttachConsole = (_TAttachConsole)GetProcAddress(lib,"AttachConsole");
|
_TAttachConsole _AttachConsole = (_TAttachConsole)GetProcAddress(lib,"AttachConsole");
|
||||||
//if(_AttachConsole)
|
if(_AttachConsole)
|
||||||
//{
|
{
|
||||||
// if(_AttachConsole(-1))
|
if(_AttachConsole(-1))
|
||||||
// attached = true;
|
attached = true;
|
||||||
//}
|
}
|
||||||
//FreeLibrary(lib);
|
FreeLibrary(lib);
|
||||||
}
|
}
|
||||||
|
|
||||||
//if we failed to attach, then alloc a new console
|
//if we failed to attach, then alloc a new console
|
||||||
|
|
Loading…
Reference in New Issue