summaryrefslogtreecommitdiffstats
path: root/PC/_msi.c
diff options
context:
space:
mode:
authorZackery Spytz <zspytz@gmail.com>2019-06-01 00:16:20 (GMT)
committerBerker Peksag <berker.peksag@gmail.com>2019-06-01 00:16:20 (GMT)
commit549e55a3086d04c13da9b6f33214f6399681292a (patch)
treed3c4a93edc5b6226e0662fde023c861d7352e4fb /PC/_msi.c
parented9f3562b637a59b9000abbceee5ae369d35444d (diff)
downloadcpython-549e55a3086d04c13da9b6f33214f6399681292a.zip
cpython-549e55a3086d04c13da9b6f33214f6399681292a.tar.gz
cpython-549e55a3086d04c13da9b6f33214f6399681292a.tar.bz2
bpo-12202: Properly check MsiSummaryInfoGetProperty() calls in msilib (GH-13711)
Diffstat (limited to 'PC/_msi.c')
-rw-r--r--PC/_msi.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/PC/_msi.c b/PC/_msi.c
index 4c8df5b..accbe7a 100644
--- a/PC/_msi.c
+++ b/PC/_msi.c
@@ -571,6 +571,9 @@ summary_getproperty(msiobj* si, PyObject *args)
status = MsiSummaryInfoGetProperty(si->h, field, &type, &ival,
&fval, sval, &ssize);
}
+ if (status != ERROR_SUCCESS) {
+ return msierror(status);
+ }
switch(type) {
case VT_I2: