]> 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:06 +0000 (19:03 +0000)
committerGeorg Brandl <georg@python.org>
Mon, 9 Oct 2006 19:03:06 +0000 (19:03 +0000)
Misc/NEWS
PC/_msi.c

index 9f7111fe769bc60a5dfc2667c2656540a07981cb..0b9aade4f4f7ca81694c35a57df8b2acecac2e38 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -126,6 +126,8 @@ Library
 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);