mirror of
https://github.com/python/cpython.git
synced 2025-08-02 16:13:13 +00:00
r858@spiff: Fredrik | 2005-11-10 23:40:04 +0100
#1346547 added basic error checking to the STARTUPINFO code in CreateProcess.
This commit is contained in:
parent
bb4692b6f2
commit
3a49e92d7d
1 changed files with 3 additions and 0 deletions
|
@ -385,6 +385,9 @@ sp_CreateProcess(PyObject* self, PyObject* args)
|
|||
si.hStdOutput = gethandle(startup_info, "hStdOutput");
|
||||
si.hStdError = gethandle(startup_info, "hStdError");
|
||||
|
||||
if (PyErr_Occurred())
|
||||
return NULL;
|
||||
|
||||
if (env_mapping == Py_None)
|
||||
environment = NULL;
|
||||
else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue