scrrun: Add a check for empty string in start_enumeration.

oldstable
Gerald Pfeifer 2014-07-26 00:34:47 +02:00 committed by Alexandre Julliard
parent be2128fd05
commit 3b8e7d4dac
1 changed files with 1 additions and 1 deletions

View File

@ -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);