mirror of
https://github.com/python/cpython.git
synced 2025-12-04 08:34:25 +00:00
Fixed object-handler-install bug
This commit is contained in:
parent
9f2ff9124c
commit
7df3606f0d
1 changed files with 1 additions and 1 deletions
|
|
@ -1846,7 +1846,7 @@ static PyObject *waste_WEInstallObjectHandler(_self, _args)
|
||||||
PyMac_GetOSType, &objectType,
|
PyMac_GetOSType, &objectType,
|
||||||
PyMac_GetOSType, &selector,
|
PyMac_GetOSType, &selector,
|
||||||
&py_handler,
|
&py_handler,
|
||||||
ExistingwasteObj_New, &we) ) return NULL;
|
WEOObj_Convert, &we) ) return NULL;
|
||||||
|
|
||||||
if ( selector == weNewHandler ) handler = (UniversalProcPtr)upp_new_handler;
|
if ( selector == weNewHandler ) handler = (UniversalProcPtr)upp_new_handler;
|
||||||
else if ( selector == weDisposeHandler ) handler = (UniversalProcPtr)upp_dispose_handler;
|
else if ( selector == weDisposeHandler ) handler = (UniversalProcPtr)upp_dispose_handler;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue