]> 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:39:34 +0000 (10:39 -0800)
committerGitHub <noreply@github.com>
Thu, 7 Mar 2019 18:39:34 +0000 (10:39 -0800)
(cherry picked from commit bf94cc7b496a379e1f604aa2e4080bb70ca4020e)

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

index 99aef52e422b9dfcf7444e31e35680927a0f4896..ae30acbc9b48d4c07f99f57e6a8986c85883daa5 100644 (file)
--- a/PC/_msi.c
+++ b/PC/_msi.c
@@ -916,7 +916,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;
     }