From 3a49e92d7dd7154a1f382ca1b28ffe610295147f Mon Sep 17 00:00:00 2001 From: Fredrik Lundh Date: Sat, 12 Nov 2005 10:15:14 +0000 Subject: r858@spiff: Fredrik | 2005-11-10 23:40:04 +0100 #1346547 added basic error checking to the STARTUPINFO code in CreateProcess. --- PC/_subprocess.c | 3 +++ 1 file changed, 3 insertions(+) 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 @@ 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 { -- cgit v0.12