From d149c21d54c46ff22fa1341c3966fd07e458a4d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20v=2E=20L=C3=B6wis?= Date: Sun, 5 Mar 2006 13:52:20 +0000 Subject: Open dll file in binary. --- Tools/msi/msilib.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Tools/msi/msilib.py b/Tools/msi/msilib.py index 7ff8e9b..d7b86cc 100644 --- a/Tools/msi/msilib.py +++ b/Tools/msi/msilib.py @@ -644,9 +644,9 @@ class Dialog: return self.control(name, "CheckBox", x, y, w, h, attr, prop, text, next, None) def pe_type(path): - header = open(path).read(1000) - # offset of PE header is at offset 0x3c; 1-based - pe_offset = struct.unpack("