[pywin32-checkins] /hgroot/pywin32/pywin32: 2 new changesets
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: <pyw...@li...> - 2016-02-27 02:14:39
|
changeset 741805c2ed90 in /hgroot/pywin32/pywin32 details: http://pywin32.hg.sourceforge.net/hgweb/pywin32/pywin32/hgroot/pywin32/pywin32?cmd=changeset;node=741805c2ed90 summary: increment build number changeset 8c70bcb663b9 in /hgroot/pywin32/pywin32 details: http://pywin32.hg.sourceforge.net/hgweb/pywin32/pywin32/hgroot/pywin32/pywin32?cmd=changeset;node=8c70bcb663b9 summary: A null SPropTagArray will now return None instead of crashing. diffstat: CHANGES.txt | 4 ++++ com/win32comext/mapi/src/mapiutil.cpp | 4 ++++ setup.py | 2 +- 3 files changed, 9 insertions(+), 1 deletions(-) diffs (37 lines): diff -r 77206efaed5e -r 8c70bcb663b9 CHANGES.txt --- a/CHANGES.txt Tue Jan 12 10:36:02 2016 +1100 +++ b/CHANGES.txt Sat Feb 27 13:13:05 2016 +1100 @@ -4,6 +4,10 @@ hg log -rb2xx: > log.out However contributors are encouraged to add their own entries for their work. +Since build 220: +---------------- +* A null SPropTagArray will now return None instead of crashing. + Since build 219: ---------------- * win32com - sys.argv[0] may be set to a bytes object instead of a string on diff -r 77206efaed5e -r 8c70bcb663b9 com/win32comext/mapi/src/mapiutil.cpp --- a/com/win32comext/mapi/src/mapiutil.cpp Tue Jan 12 10:36:02 2016 +1100 +++ b/com/win32comext/mapi/src/mapiutil.cpp Sat Feb 27 13:13:05 2016 +1100 @@ -752,6 +752,10 @@ PyObject *PyMAPIObject_FromSPropTagArray(SPropTagArray *pta) { + if (!pta) { + Py_INCREF(Py_None); + return Py_None; + } PyObject *ret = PyTuple_New(pta->cValues); for (ULONG i=0;i<pta->cValues;i++) { PyTuple_SET_ITEM(ret, i, PyLong_FromUnsignedLong(pta->aulPropTag[i])); diff -r 77206efaed5e -r 8c70bcb663b9 setup.py --- a/setup.py Tue Jan 12 10:36:02 2016 +1100 +++ b/setup.py Sat Feb 27 13:13:05 2016 +1100 @@ -1,4 +1,4 @@ -build_id="220" # may optionally include a ".{patchno}" suffix. +build_id="220.1" # may optionally include a ".{patchno}" suffix. # Putting buildno at the top prevents automatic __doc__ assignment, and # I *want* the build number at the top :) __doc__="""This is a distutils setup-script for the pywin32 extensions |