From fa7ae720600af899a14389894c38fd0dc68cfb94 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Wed, 8 Aug 2001 23:24:15 +0000 Subject: [PATCH] Fixed loop termination check in PathIsExeW. --- dlls/shell32/shellpath.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/shell32/shellpath.c b/dlls/shell32/shellpath.c index c60cc6e3ed8..befbfa0c437 100644 --- a/dlls/shell32/shellpath.c +++ b/dlls/shell32/shellpath.c @@ -336,7 +336,7 @@ static BOOL PathIsExeW (LPCWSTR lpszPath) TRACE("path=%s\n",debugstr_w(lpszPath)); - for(i=0; lpszExtensions[i]; i++) + for(i=0; lpszExtensions[i][0]; i++) if (!strcmpiW(lpszExtension,lpszExtensions[i])) return TRUE; return FALSE;