Skip to content

Commit

Permalink
not !=
Browse files Browse the repository at this point in the history
  • Loading branch information
ebfe90 committed Jan 19, 2021
1 parent 94c303c commit a9c1638
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def get_process_full_imagename(pid):
byref(process_info),
sizeof(process_info),
None)
if status != 0:
if status == 0:
image_filename = str(process_info.ImageName.Buffer)
if image_filename.startswith('\\Device\\'):
image_filename = convert_ntpath(image_filename)
Expand Down

0 comments on commit a9c1638

Please sign in to comment.