Skip to content

Commit

Permalink
unicode buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
ebfe90 committed Jan 19, 2021
1 parent a9c1638 commit fe3858b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def convert_ntpath(exepath):
def get_process_full_imagename(pid):
_NtQuerySystemInformation = windll.ntdll.NtQuerySystemInformation
image_filename = ''
buf = ctypes.create_string_buffer(0x100)
buf = ctypes.create_unicode_buffer(0x100)
process_info = SYSTEM_PROCESS_ID_INFORMATION()
process_info.ProcessId = ctypes.c_void_p(pid)
process_info.ImageName.MaximumLength = len(buf)
Expand Down

0 comments on commit fe3858b

Please sign in to comment.