summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
Diffstat (limited to 'Lib')
-rw-r--r--Lib/distutils/command/bdist_wininst.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/Lib/distutils/command/bdist_wininst.py b/Lib/distutils/command/bdist_wininst.py
index d91c089..79c95ae 100644
--- a/Lib/distutils/command/bdist_wininst.py
+++ b/Lib/distutils/command/bdist_wininst.py
@@ -253,8 +253,14 @@ class bdist_wininst (Command):
# empty pre-install script
cfgdata = cfgdata + "\0"
file.write(cfgdata)
+
+ # The 'magic number' 0x1234567B is used to make sure that the
+ # binary layout of 'cfgdata' is what the wininst.exe binary
+ # expects. If the layout changes, increment that number, make
+ # the corresponding changes to the wininst.exe sources, and
+ # recompile them.
header = struct.pack("<iii",
- 0x1234567A, # tag
+ 0x1234567B, # tag
len(cfgdata), # length
bitmaplen, # number of bytes in bitmap
)