Commit 657d9f9c authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

The shell special folder path creation did not mkdir the last

component of the path if it did not end with \.
parent f6eb06b1
...@@ -1042,6 +1042,15 @@ BOOL WINAPI SHGetSpecialFolderPathA ( ...@@ -1042,6 +1042,15 @@ BOOL WINAPI SHGetSpecialFolderPathA (
*p = '\\'; *p = '\\';
p = strchr(p+1, '\\'); 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); MESSAGE("Created not existing system directory '%s'\n", szPath);
return TRUE; return TRUE;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment