From 3b8e7d4dac6f079f1732518d542ca7f7c0c4da41 Mon Sep 17 00:00:00 2001 From: Gerald Pfeifer Date: Sat, 26 Jul 2014 00:34:47 +0200 Subject: [PATCH] scrrun: Add a check for empty string in start_enumeration. --- dlls/scrrun/filesystem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/scrrun/filesystem.c b/dlls/scrrun/filesystem.c index 434b402b158..f6f7703db11 100644 --- a/dlls/scrrun/filesystem.c +++ b/dlls/scrrun/filesystem.c @@ -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);