summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/python/py_spoolss_drivers.c6
1 files changed, 5 insertions, 1 deletions
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);