From: Thomas Heller Date: Mon, 19 Jul 2004 09:57:58 +0000 (+0000) Subject: The binary layout of cfgdata has changed, so the magic number has to X-Git-Tag: v2.4a2~189 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=876d990ae0efa18da9b3116048b4a29e12cec5d0;p=python The binary layout of cfgdata has changed, so the magic number has to change as well. Display an additional message box when a mismatch is detected. --- diff --git a/PC/bdist_wininst/install.c b/PC/bdist_wininst/install.c index fac914cc5e..d268624e98 100644 --- a/PC/bdist_wininst/install.c +++ b/PC/bdist_wininst/install.c @@ -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; }