diff options
author | Berker Peksag <berker.peksag@gmail.com> | 2017-11-24 16:04:40 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-24 16:04:40 (GMT) |
commit | 412f00b839eae2bc07ca08a8e615c3d7dc870646 (patch) | |
tree | 126196c0b0e68358561f2f3687ab90a144281491 /PC | |
parent | bfa89b21e119bac7fed4a5decc26f1fff8ec359e (diff) | |
download | cpython-412f00b839eae2bc07ca08a8e615c3d7dc870646.zip cpython-412f00b839eae2bc07ca08a8e615c3d7dc870646.tar.gz cpython-412f00b839eae2bc07ca08a8e615c3d7dc870646.tar.bz2 |
[3.6] bpo-12239: Make GetProperty() return None for VT_EMPTY (GH-4539)
The previous behavior was to raise an exception
NotImplementedError: result of type 0
when the value of the property is VT_EMPTY.
(cherry picked from commit 19fb134185ce155bc53f517116fca73093ba55e9)
Diffstat (limited to 'PC')
-rw-r--r-- | PC/_msi.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -578,6 +578,8 @@ summary_getproperty(msiobj* si, PyObject *args) if (sval != sbuf) free(sval); return result; + case VT_EMPTY: + Py_RETURN_NONE; } PyErr_Format(PyExc_NotImplementedError, "result of type %d", type); return NULL; |