diff options
author | Berker Peksag <berker.peksag@gmail.com> | 2017-11-24 15:11:18 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-24 15:11:18 (GMT) |
commit | 19fb134185ce155bc53f517116fca73093ba55e9 (patch) | |
tree | e38accbe5c87a8c93a40ef649e2a07cd9cee79df /PC/_msi.c | |
parent | 9e87e7776f7ace66baaf7247233afdabd00c2b44 (diff) | |
download | cpython-19fb134185ce155bc53f517116fca73093ba55e9.zip cpython-19fb134185ce155bc53f517116fca73093ba55e9.tar.gz cpython-19fb134185ce155bc53f517116fca73093ba55e9.tar.bz2 |
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.
Diffstat (limited to 'PC/_msi.c')
-rw-r--r-- | PC/_msi.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -575,6 +575,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; |