mirror of
https://github.com/reactos/reactos.git
synced 2026-06-22 00:12:50 +08:00
- create the profiles directory if it does not yet exist
svn path=/trunk/; revision=33477
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user