summaryrefslogtreecommitdiff
path: root/PC/bdist_wininst
diff options
context:
space:
mode:
authorThomas Heller <theller@ctypes.org>2004-07-19 09:57:58 +0000
committerThomas Heller <theller@ctypes.org>2004-07-19 09:57:58 +0000
commit52c7ec68945db288502d0beeaa70eb42de26a46d (patch)
tree37c67bd0c3daca69eddc1072aa59d93339f84928 /PC/bdist_wininst
parent0d1bb8f16c5a7b49f1e2b67043f0689d9fe39c37 (diff)
downloadcpython-52c7ec68945db288502d0beeaa70eb42de26a46d.tar.gz
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.
Diffstat (limited to 'PC/bdist_wininst')
-rw-r--r--PC/bdist_wininst/install.c6
1 files changed, 5 insertions, 1 deletions
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;
}