]> granicus.if.org Git - python/commitdiff
bpo-36140: Fix an incorrect check in msidb_getsummaryinformation() (GH-12074)
authorZackery Spytz <zspytz@gmail.com>
Thu, 7 Mar 2019 18:20:13 +0000 (11:20 -0700)
committerSteve Dower <steve.dower@microsoft.com>
Thu, 7 Mar 2019 18:20:13 +0000 (10:20 -0800)
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;
     }