mirror of
https://github.com/reactos/reactos.git
synced 2024-11-20 06:15:26 +00:00
[SYSSETUP]
- Don't disable the user profile creation hack until it's actually fixed (NtUnloadKey(NULL) doesn't do anything and I don't know what's actually supposed to go there). Should avoid some user profile corruption after crashes in 3rd stage (since 2nd stage will have flushed the registry). CORE-10381 svn path=/trunk/; revision=70320
This commit is contained in:
parent
dcbfa5af55
commit
f7500c28d1
1 changed files with 3 additions and 1 deletions
|
@ -1075,13 +1075,15 @@ InstallReactOS(HINSTANCE hInstance)
|
|||
/* ROS HACK, as long as NtUnloadKey is not implemented */
|
||||
{
|
||||
NTSTATUS Status = NtUnloadKey(NULL);
|
||||
if (Status == STATUS_NOT_IMPLEMENTED)
|
||||
if (!NT_SUCCESS(Status))
|
||||
{
|
||||
/* Create the Administrator profile */
|
||||
PROFILEINFOW ProfileInfo;
|
||||
HANDLE hToken;
|
||||
BOOL ret;
|
||||
|
||||
DPRINT1("NtUnloadKey failed with 0x%lx\n", Status);
|
||||
|
||||
ret = LogonUserW(AdminInfo.Name,
|
||||
AdminInfo.Domain,
|
||||
AdminInfo.Password,
|
||||
|
|
Loading…
Reference in a new issue