PyTuple_GetPointer introduced

This commit is contained in:
d1str4ught
2025-08-27 13:22:41 +02:00
parent 4e6a7f1b08
commit 4385a2c709
7 changed files with 36 additions and 45 deletions

View File

@@ -5,14 +5,10 @@
bool PyTuple_GetWindow(PyObject* poArgs, int pos, UI::CWindow ** ppRetWindow)
{
unsigned long long iHandle;
if (!PyTuple_GetUnsignedLongLong(poArgs, pos, &iHandle))
return false;
if (!iHandle)
if (!PyTuple_GetPointer(poArgs, pos, ppRetWindow))
return false;
*ppRetWindow = (UI::CWindow*)iHandle;
return true;
return *ppRetWindow != nullptr;
}
PyObject * wndMgrGetAspect(PyObject * poSelf, PyObject * poArgs)