Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
d149c21d
Commit
d149c21d
authored
Mar 05, 2006
by
Martin v. Löwis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Open dll file in binary.
parent
dd860caa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
Tools/msi/msilib.py
Tools/msi/msilib.py
+3
-3
No files found.
Tools/msi/msilib.py
View file @
d149c21d
...
...
@@ -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
(
"<i"
,
header
[
0x3c
:
0x40
])[
0
]
-
1
header
=
open
(
path
,
"rb"
).
read
(
1000
)
# offset of PE header is at offset 0x3c
pe_offset
=
struct
.
unpack
(
"<i"
,
header
[
0x3c
:
0x40
])[
0
]
assert
header
[
pe_offset
:
pe_offset
+
4
]
==
"PE
\
0
\
0
"
machine
=
struct
.
unpack
(
"<H"
,
header
[
pe_offset
+
4
:
pe_offset
+
6
])[
0
]
return
machine
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment