Skip to content

Commit 3a49e92

Browse files
author
Fredrik Lundh
committed
r858@spiff: Fredrik | 2005-11-10 23:40:04 +0100
#1346547 added basic error checking to the STARTUPINFO code in CreateProcess.
1 parent bb4692b commit 3a49e92

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

PC/_subprocess.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -385,6 +385,9 @@ sp_CreateProcess(PyObject* self, PyObject* args)
385385
si.hStdOutput = gethandle(startup_info, "hStdOutput");
386386
si.hStdError = gethandle(startup_info, "hStdError");
387387

388+
if (PyErr_Occurred())
389+
return NULL;
390+
388391
if (env_mapping == Py_None)
389392
environment = NULL;
390393
else {

0 commit comments

Comments
 (0)