mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
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.
This commit is contained in:
parent
b8f134e3c3
commit
876d990ae0
1 changed files with 5 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue