Commit 3b8e7d4d authored by Gerald Pfeifer's avatar Gerald Pfeifer Committed by Alexandre Julliard

scrrun: Add a check for empty string in start_enumeration.

parent be2128fd
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment