Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 876d990

Browse files
author
Thomas Heller
committed
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.
1 parent b8f134e commit 876d990

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

PC/bdist_wininst/install.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -955,7 +955,11 @@ static BOOL ExtractInstallData(char *data, DWORD size, int *pexe_size,
955955
return FALSE;
956956
}
957957

958-
if (pmd->tag != 0x1234567A || ofs < 0) {
958+
if (pmd->tag != 0x1234567B) {
959+
return SystemError(0,
960+
"Invalid cfgdata magic number (see bdist_wininst.py)");
961+
}
962+
if (ofs < 0) {
959963
return FALSE;
960964
}
961965

0 commit comments

Comments
 (0)