- create the profiles directory if it does not yet exist

svn path=/trunk/; revision=33477
This commit is contained in:
Johannes Anderwald
2008-05-12 16:59:06 +00:00
parent f50c85e75f
commit 5bc1879d50

View File

@@ -216,6 +216,16 @@ CreateUserProfileW (PSID Sid,
return FALSE;
}
/* create the profiles directory if it does not yet exist */
if (!CreateDirectoryW(szProfilesPath, NULL))
{
if (GetLastError () != ERROR_ALREADY_EXISTS)
{
DPRINT1("Error: %lu\n", GetLastError());
return FALSE;
}
}
/* Get default user path */
dwLength = MAX_PATH * sizeof(WCHAR);
Error = RegQueryValueExW (hKey,