]> granicus.if.org Git - python/commitdiff
Patch #1572724: fix typo ('=' instead of '==') in _msi.c.
authorGeorg Brandl <georg@python.org>
Mon, 9 Oct 2006 19:03:12 +0000 (19:03 +0000)
committerGeorg Brandl <georg@python.org>
Mon, 9 Oct 2006 19:03:12 +0000 (19:03 +0000)
 (backport from rev. 52251)

Misc/NEWS
PC/_msi.c

index 485c5f029b3a89f8cb91334aff396a997f36e4b1..1159a6bf0d7f1eeea1a76402c53d4ba7be3c00a7 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -49,6 +49,8 @@ Core and builtins
 Extension Modules
 -----------------
 
+- Patch #1572724: fix typo ('=' instead of '==') in _msi.c.
+
 - Bug #1572832: fix a bug in ISO-2022 codecs which may cause segfault
   when encoding non-BMP unicode characters.
 
index 35f137a24a3de664320816304dc6a0329881ac2b..f4af92af8aecb7c0aa6b9ece20fb0e6c32f65220 100644 (file)
--- a/PC/_msi.c
+++ b/PC/_msi.c
@@ -495,7 +495,7 @@ summary_getproperty(msiobj* si, PyObject *args)
 
     status = MsiSummaryInfoGetProperty(si->h, field, &type, &ival, 
        &fval, sval, &ssize);
-    if (status = ERROR_MORE_DATA) {
+    if (status == ERROR_MORE_DATA) {
        sval = malloc(ssize);
         status = MsiSummaryInfoGetProperty(si->h, field, &type, &ival, 
            &fval, sval, &ssize);