commit | 3a49e92d7dd7154a1f382ca1b28ffe610295147f | [log] [tgz] |
---|---|---|
author | Fredrik Lundh <fredrik@pythonware.com> | Sat Nov 12 10:15:14 2005 +0000 |
committer | Fredrik Lundh <fredrik@pythonware.com> | Sat Nov 12 10:15:14 2005 +0000 |
tree | 275e27e5160c7196c9578e8b16a9c2d68c86064f | |
parent | bb4692b6f2ee67994ef43e7a359ffd987392261d [diff] [blame] |
r858@spiff: Fredrik | 2005-11-10 23:40:04 +0100 #1346547 added basic error checking to the STARTUPINFO code in CreateProcess.
diff --git a/PC/_subprocess.c b/PC/_subprocess.c index f107c13..a09b016 100644 --- a/PC/_subprocess.c +++ b/PC/_subprocess.c
@@ -385,6 +385,9 @@ 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 {