kernelbase: Don't assume the length of the process image name.
commita7937e83b2f8606aa777098eb5e738241a5458e1
authorTim Clem <tclem@codeweavers.com>
Tue, 9 Aug 2022 20:10:15 +0000 (9 13:10 -0700)
committerAlexandre Julliard <julliard@winehq.org>
Wed, 10 Aug 2022 09:36:33 +0000 (10 11:36 +0200)
treedb57b5872de0bf21af9e525bae070c01756852fe
parent88f1d681c15578ad77edd460c45b0df24234baad
kernelbase: Don't assume the length of the process image name.

NtQueryInformationProcess(ProcessImageFileNameWin32) may return an
empty string in some circumstances, which leads
QueryFullProcessImageNameW to crash if called with flags including
PROCESS_NAME_NATIVE, as that path assumed the image name had a length
of at least 2.
dlls/kernelbase/debug.c