scrrun: Add a check for empty string in start_enumeration.
This commit is contained in:
parent
be2128fd05
commit
3b8e7d4dac
|
@ -1130,7 +1130,7 @@ static HANDLE start_enumeration(const WCHAR *path, WIN32_FIND_DATAW *data, BOOL
|
|||
|
||||
strcpyW(pathW, path);
|
||||
len = strlenW(pathW);
|
||||
if (pathW[len-1] != '\\')
|
||||
if (len && pathW[len-1] != '\\')
|
||||
strcatW(pathW, bsW);
|
||||
strcatW(pathW, allW);
|
||||
handle = FindFirstFileW(pathW, data);
|
||||
|
|
Loading…
Reference in New Issue