]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
r858@spiff: Fredrik | 2005-11-10 23:40:04 +0100
authorFredrik Lundh <fredrik@pythonware.com>
Sat, 12 Nov 2005 10:15:14 +0000 (10:15 +0000)
committerFredrik Lundh <fredrik@pythonware.com>
Sat, 12 Nov 2005 10:15:14 +0000 (10:15 +0000)
 #1346547

 added basic error checking to the STARTUPINFO code
 in CreateProcess.

PC/_subprocess.c

index f107c1340df1f1b7d04bd0b54911f73098cd1fe6..a09b0160a689be5eb8b6a819d9c6cd6ed0b347fc 100644 (file)
@@ -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 {