summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2019-03-07 18:49:15 (GMT)
committerGitHub <noreply@github.com>2019-03-07 18:49:15 (GMT)
commitb19943ec97b80db97dd93ed714615f757cc12ad3 (patch)
treee50c4abb122f8d7118a3c1b6c878bde735a9a901
parente37ef41289b77e0f0bb9a6aedb0360664c55bdd5 (diff)
downloadcpython-b19943ec97b80db97dd93ed714615f757cc12ad3.zip
cpython-b19943ec97b80db97dd93ed714615f757cc12ad3.tar.gz
cpython-b19943ec97b80db97dd93ed714615f757cc12ad3.tar.bz2
bpo-36140: Fix an incorrect check in msidb_getsummaryinformation() (GH-12074)
(cherry picked from commit bf94cc7b496a379e1f604aa2e4080bb70ca4020e) Co-authored-by: Zackery Spytz <zspytz@gmail.com>
-rw-r--r--PC/_msi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/PC/_msi.c b/PC/_msi.c
index 4000f00..3c46d83 100644
--- a/PC/_msi.c
+++ b/PC/_msi.c
@@ -894,7 +894,7 @@ msidb_getsummaryinformation(msiobj *db, PyObject *args)
return msierror(status);
oresult = PyObject_NEW(struct msiobj, &summary_Type);
- if (!result) {
+ if (!oresult) {
MsiCloseHandle(result);
return NULL;
}