Correct and update executable types in PathIsExe

Jeff Smith whydoubt at hotmail.com
Thu Sep 19 23:35:42 CDT 2002


Looking at PathIsExe, I thought PID was probably supposed to be PIF
(Program Information File).  I checked MSDN, and found this was the
case.  I also found two more types that need to be recognized: SCR
(SCReensaver) and SCF (Shell Command File?).

Changelog:
  -- PathIsExe: corrected and added executable types

Index: dlls/shell32/shellpath.c
===================================================================
RCS file: /home/wine/wine/dlls/shell32/shellpath.c,v
retrieving revision 1.64
diff -u -r1.64 shellpath.c
--- dlls/shell32/shellpath.c	28 Aug 2002 23:42:34 -0000	1.64
+++ dlls/shell32/shellpath.c	20 Sep 2002 03:07:37 -0000
@@ -340,7 +340,8 @@
{
	LPCSTR lpszExtension = PathGetExtensionA(lpszPath);
	int i = 0;
-	static char * lpszExtensions[6] = {"exe", "com", "pid", "cmd", "bat", NULL 
};
+	static char * lpszExtensions[8] =
+	  {"exe", "com", "pif", "cmd", "bat", "scf", "scr", NULL };

	TRACE("path=%s\n",lpszPath);

@@ -358,8 +359,9 @@
	LPCWSTR lpszExtension = PathGetExtensionW(lpszPath);
	int i = 0;
	static WCHAR lpszExtensions[8][4] =
-	  {{'e','x','e','\0'}, {'c','o','m','\0'}, {'p','i','d','\0'},
-	   {'c','m','d','\0'}, {'b','a','t','\0'}, {'\0'} };
+	  {{'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));

_________________________________________________________________
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx




More information about the wine-patches mailing list