From be92d4ac55caa3f44c5125cf4220bea4ca69e45e Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Mon, 20 May 2002 08:05:27 +0000 Subject: Decode info level 3 for getprinterdriver. Error checking for undecoded info levels. (This used to be commit 841b6cf63c1f22dcb8fa07796a44e20555fe5b59) --- source3/python/py_spoolss_drivers.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/source3/python/py_spoolss_drivers.c b/source3/python/py_spoolss_drivers.c index e95d548ef1..1626684a1b 100644 --- a/source3/python/py_spoolss_drivers.c +++ b/source3/python/py_spoolss_drivers.c @@ -210,11 +210,15 @@ PyObject *spoolss_hnd_getprinterdriver(PyObject *self, PyObject *args, case 2: py_from_DRIVER_INFO_2(&result, ctr.info2); break; + case 3: + py_from_DRIVER_INFO_3(&result, ctr.info3); + break; case 6: py_from_DRIVER_INFO_6(&result, ctr.info6); break; default: - break; + PyErr_SetString(spoolss_error, "unsupported info level"); + return NULL; } Py_INCREF(result); -- cgit