Handle case where MSPE.ReadCharacteristics is None
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6945 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
bde2173193
commit
7ccd6b3c9f
1 changed files with 1 additions and 1 deletions
|
@ -188,7 +188,7 @@ class MSPE:
|
|||
|
||||
def IsPEExecutable(pe):
|
||||
if not isinstance(pe, MSPE): pe = MSPE(pe)
|
||||
if pe.ReadCharacteristics() & 0x0002: return True # IMAGE_FILE_EXECUTABLE_IMAGE?
|
||||
if int(pe.ReadCharacteristics() or 0) & 0x0002: return True # IMAGE_FILE_EXECUTABLE_IMAGE?
|
||||
|
||||
def SetPESecurityFlagsWorker(filepath):
|
||||
"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue