]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-36140: Fix an incorrect check in msidb_getsummaryinformation() (GH-12074)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 7 Mar 2019 18:49:15 +0000 (10:49 -0800)
committerGitHub <noreply@github.com>
Thu, 7 Mar 2019 18:49:15 +0000 (10:49 -0800)
(cherry picked from commit bf94cc7b496a379e1f604aa2e4080bb70ca4020e)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
PC/_msi.c

index 4000f00c763bc3c8f277cb6d877e590952def8d7..3c46d8349cfdfcc4c55b8eee45cb27cb218e6b2b 100644 (file)
--- 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;
     }