PATCH: shellpath creation

Marcus Meissner Marcus.Meissner at caldera.de
Fri May 18 10:05:33 CDT 2001


Hi,

Changelog:
	the shell special folder path creation did not mkdir the last
	component of the path if it did not end with \.

Index: shellpath.c
===================================================================
RCS file: /home/wine/wine/dlls/shell32/shellpath.c,v
retrieving revision 1.49
diff -u -r1.49 shellpath.c
--- shellpath.c	2001/03/19 19:14:00	1.49
+++ shellpath.c	2001/05/18 15:03:04
@@ -1042,6 +1042,15 @@
 	    *p = '\\';
 	    p = strchr(p+1, '\\');
 	}
+	/* last component must be created too. */
+	if (!PathFileExistsA(szBuildPath))
+	{
+	    if (!CreateDirectoryA(szBuildPath,NULL))
+	    {
+		ERR("Failed to create directory '%s'.\n", szPath);
+		return FALSE;
+	    }
+	}
 
 	MESSAGE("Created not existing system directory '%s'\n", szPath);
 	return TRUE;




More information about the wine-patches mailing list