From a3763b9bc84e6e1e0261ab1212b9760db34b8a8c Mon Sep 17 00:00:00 2001
From: Jeff Smith <whydoubt@hotmail.com>
Date: Mon, 30 Sep 2002 19:01:20 +0000
Subject: [PATCH] PathIsExe: corrected and added executable types.

---
 dlls/shell32/shellpath.c | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)

diff --git a/dlls/shell32/shellpath.c b/dlls/shell32/shellpath.c
index aa9d3e87da1..86eccca720f 100644
--- a/dlls/shell32/shellpath.c
+++ b/dlls/shell32/shellpath.c
@@ -339,8 +339,9 @@ BOOL WINAPI PathIsRootAW(LPCVOID lpszPath)
 static BOOL PathIsExeA (LPCSTR lpszPath)
 {
 	LPCSTR lpszExtension = PathGetExtensionA(lpszPath);
-	int i = 0;
-	static char * lpszExtensions[6] = {"exe", "com", "pid", "cmd", "bat", NULL };
+        int i;
+        static const char * const lpszExtensions[] =
+            {"exe", "com", "pif", "cmd", "bat", "scf", "scr", NULL };
 
 	TRACE("path=%s\n",lpszPath);
 
@@ -356,10 +357,11 @@ static BOOL PathIsExeA (LPCSTR lpszPath)
 static BOOL PathIsExeW (LPCWSTR lpszPath)
 {
 	LPCWSTR lpszExtension = PathGetExtensionW(lpszPath);
-	int i = 0;
-	static WCHAR lpszExtensions[6][4] =
-	  {{'e','x','e','\0'}, {'c','o','m','\0'}, {'p','i','d','\0'},
-	   {'c','m','d','\0'}, {'b','a','t','\0'}, {'\0'} };
+        int i;
+        static const WCHAR lpszExtensions[][4] =
+            {{'e','x','e','\0'}, {'c','o','m','\0'}, {'p','i','f','\0'},
+             {'c','m','d','\0'}, {'b','a','t','\0'}, {'s','c','f','\0'},
+             {'s','c','r','\0'}, {'\0'} };
 
 	TRACE("path=%s\n",debugstr_w(lpszPath));
 
-- 
GitLab