]> granicus.if.org Git - python/commitdiff
The binary layout of cfgdata has changed, so the magic number has to
authorThomas Heller <theller@ctypes.org>
Mon, 19 Jul 2004 09:57:58 +0000 (09:57 +0000)
committerThomas Heller <theller@ctypes.org>
Mon, 19 Jul 2004 09:57:58 +0000 (09:57 +0000)
change as well.
Display an additional message box when a mismatch is detected.

PC/bdist_wininst/install.c

index fac914cc5e412a5ea60351a29f1ee0ffef598c8f..d268624e98d5e1cf08cdd5bbddd2570d67efec46 100644 (file)
@@ -955,7 +955,11 @@ static BOOL ExtractInstallData(char *data, DWORD size, int *pexe_size,
                return FALSE;
        }
 
-       if (pmd->tag != 0x1234567A || ofs < 0) {
+       if (pmd->tag != 0x1234567B) {
+               return SystemError(0,
+                          "Invalid cfgdata magic number (see bdist_wininst.py)");
+       }
+       if (ofs < 0) {
                return FALSE;
        }