mirror of
https://github.com/samba-team/samba.git
synced 2025-01-29 21:47:30 +03:00
New arguments to cli_spoolss_enum_printers()
(This used to be commit 55f891016c005c1552f1c1d95dd067bbf9de8869)
This commit is contained in:
parent
83c5985880
commit
b1037bffcf
@ -337,13 +337,13 @@ PyObject *spoolss_enumprinters(PyObject *self, PyObject *args, PyObject *kw)
|
|||||||
/* Call rpc function */
|
/* Call rpc function */
|
||||||
|
|
||||||
werror = cli_spoolss_enum_printers(
|
werror = cli_spoolss_enum_printers(
|
||||||
cli, mem_ctx, 0, &needed, flags, level,
|
cli, mem_ctx, 0, &needed, name, flags, level,
|
||||||
&num_printers, &ctr);
|
&num_printers, &ctr);
|
||||||
|
|
||||||
if (W_ERROR_V(werror) == ERRinsufficientbuffer)
|
if (W_ERROR_V(werror) == ERRinsufficientbuffer)
|
||||||
werror = cli_spoolss_enum_printers(
|
werror = cli_spoolss_enum_printers(
|
||||||
cli, mem_ctx, needed, NULL, flags, level,
|
cli, mem_ctx, needed, NULL, name, flags,
|
||||||
&num_printers, &ctr);
|
level, &num_printers, &ctr);
|
||||||
|
|
||||||
if (!W_ERROR_IS_OK(werror)) {
|
if (!W_ERROR_IS_OK(werror)) {
|
||||||
PyErr_SetObject(spoolss_werror, py_werror_tuple(werror));
|
PyErr_SetObject(spoolss_werror, py_werror_tuple(werror));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user