Don't fail if username_from_token returns None

This commit is contained in:
Spencer McIntyre 2014-11-10 09:15:16 -05:00
parent 104841babf
commit 7edc248207
1 changed files with 1 additions and 1 deletions

View File

@ -879,7 +879,7 @@ def stdapi_sys_process_get_processes_via_windll(request, response):
process_username = ''
process_token_user = get_token_user(proc_h)
if process_token_user:
process_username = get_username_from_token(process_token_user)
process_username = get_username_from_token(process_token_user) or ''
parch = windll_GetNativeSystemInfo()
is_wow64 = ctypes.c_ubyte()
is_wow64.value = 0