diff --git a/meshconsole/main.c b/meshconsole/main.c index b6e9405..e049f2e 100644 --- a/meshconsole/main.c +++ b/meshconsole/main.c @@ -108,6 +108,12 @@ int main(int argc, char **argv) int retCode = 0; int capabilities = 0; + STARTUPINFOEX si; + printf("sizeof(STARTUPINFOEX) = %u\n", sizeof(STARTUPINFOEX)); + printf("si.StartupInfo.cb = %u\n", (char*)&si.StartupInfo.cb - (char*)&si); + printf("si.lpAttributeList = %u\n", (char*)&si.lpAttributeList - (char*)&si); + + #if defined (_POSIX) #ifndef _NOILIBSTACKDEBUG char* crashMemory = ILib_POSIX_InstallCrashHandler(argv[0]); diff --git a/modules/win-terminal.js b/modules/win-terminal.js index c045570..7b4e4fd 100644 --- a/modules/win-terminal.js +++ b/modules/win-terminal.js @@ -28,6 +28,7 @@ function windows_terminal() this._kernel32 = GM.CreateNativeProxy('Kernel32.dll'); this._kernel32.CreateMethod('CreatePipe'); this._kernel32.CreateMethod('CreatePseudoConsole'); + this._kernel32.CreateMethod('InitializeProcThreadAttributeList'); this._kernel32.CreateMethod('ReadFile'); this._kernel32.CreateMethod('WriteFile');