[utils] Add missing null check

This commit is contained in:
derrod 2021-12-31 18:50:05 +01:00
parent 0298a53315
commit 4a4e1397d4

View file

@ -59,10 +59,11 @@ def query_registry_entries(prefix=None):
else:
overlay_path = None
if overlay_path.startswith('C:'):
overlay_path = os.path.join(prefix, 'drive_c', overlay_path[3:])
elif overlay_path.startswith('Z:'):
overlay_path = overlay_path[2:]
if overlay_path:
if overlay_path.startswith('C:'):
overlay_path = os.path.join(prefix, 'drive_c', overlay_path[3:])
elif overlay_path.startswith('Z:'):
overlay_path = overlay_path[2:]
return dict(overlay_path=overlay_path,
vulkan_hkcu=list(),