mirror of
https://github.com/samba-team/samba.git
synced 2025-02-05 21:57:51 +03:00
py_to_DRIVER_INFO_3: remove level key on copy of dictionary before calling
to_struct(). (This used to be commit 274679d8ce33aaf664ffaaa6834d506f7b196fc6)
This commit is contained in:
parent
be92d4ac55
commit
03a8391787
@ -113,9 +113,14 @@ BOOL py_from_DRIVER_INFO_3(PyObject **dict, DRIVER_INFO_3 *info)
|
||||
|
||||
BOOL py_to_DRIVER_INFO_3(DRIVER_INFO_3 *info, PyObject *dict)
|
||||
{
|
||||
to_struct(info, dict, py_DRIVER_INFO_3);
|
||||
PyObject *dict_copy = PyDict_Copy(dict);
|
||||
BOOL result;
|
||||
|
||||
return True;
|
||||
PyDict_DelItemString(dict_copy, "level");
|
||||
result = to_struct(info, dict_copy, py_DRIVER_INFO_3);
|
||||
|
||||
Py_DECREF(dict_copy);
|
||||
return result;
|
||||
}
|
||||
|
||||
BOOL py_from_DRIVER_INFO_6(PyObject **dict, DRIVER_INFO_6 *info)
|
||||
|
Loading…
x
Reference in New Issue
Block a user