PyTuple_GetPointer introduced
This commit is contained in:
@@ -287,11 +287,11 @@ PyObject * itemGetIconInstance(PyObject * poSelf, PyObject * poArgs)
|
||||
|
||||
PyObject * itemDeleteIconInstance(PyObject * poSelf, PyObject * poArgs)
|
||||
{
|
||||
unsigned long long iHandle;
|
||||
if (!PyTuple_GetUnsignedLongLong(poArgs, 0, &iHandle))
|
||||
CGraphicImageInstance* pImgInstance;
|
||||
if (!PyTuple_GetPointer(poArgs, 0, &pImgInstance))
|
||||
return Py_BadArgument();
|
||||
|
||||
CGraphicImageInstance::Delete((CGraphicImageInstance *) iHandle);
|
||||
CGraphicImageInstance::Delete(pImgInstance);
|
||||
|
||||
return Py_BuildNone();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user