Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions officeparser.py
Original file line number Diff line number Diff line change
Expand Up @@ -879,7 +879,7 @@ def check_value(name, expected, value):
PROJECTCOMPATVERSION_Size = unpack("<L", dir_stream.read(4))[0]
check_value('PROJECTCOMPATVERSION_Size', 0x0004, PROJECTCOMPATVERSION_Size)
PROJECTCOMPATVERSION_CompatVersion = unpack("<L", dir_stream.read(4))[0]
else record_check == 0x0002:
elif record_check == 0x0002:
# PROJECTLCID Record
PROJECTLCID_Id = record_check
check_value('PROJECTLCID_Id', 0x0002, PROJECTLCID_Id)
Expand Down Expand Up @@ -1163,7 +1163,7 @@ def check_value(name, expected, value):

code_stream = ofdoc.find_stream_by_name(MODULESTREAMNAME_StreamName)
# check for None
if code_stream = None:
if code_stream == None:
logging.warning('Stream name \"{0}\" not found'.format(MODULESTREAMNAME_StreamName))
continue

Expand Down