diff --git a/Contrib/nsExec/nsexec.c b/Contrib/nsExec/nsexec.c index e526e71e..d64edb7a 100644 --- a/Contrib/nsExec/nsexec.c +++ b/Contrib/nsExec/nsexec.c @@ -109,6 +109,8 @@ void ExecScript(int log) { szUnusedBuf = (char *)GlobalLock(hUnusedBuf); } + #define TEST(x) if (!x) MessageBox(g_hwndParent, #x, "failed", MB_OK|MB_ICONERROR); + GetVersionEx(&osv); if (osv.dwPlatformId == VER_PLATFORM_WIN32_NT) { InitializeSecurityDescriptor(&sd,SECURITY_DESCRIPTOR_REVISION); @@ -125,6 +127,7 @@ void ExecScript(int log) { GetStartupInfo(&si); si.dwFlags = STARTF_USESTDHANDLES|STARTF_USESHOWWINDOW; si.wShowWindow = SW_HIDE; + si.hStdInput = GetStdHandle(STD_INPUT_HANDLE); si.hStdOutput = newstdout; si.hStdError = newstdout; if (!CreateProcess(NULL,g_exec,NULL,NULL,TRUE,CREATE_NEW_CONSOLE,NULL,NULL,&si,&pi)) { diff --git a/Plugins/nsExec.dll b/Plugins/nsExec.dll index 65c761ec..9e90a656 100644 Binary files a/Plugins/nsExec.dll and b/Plugins/nsExec.dll differ