mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 19:03:00 +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 */
|
/* ROS HACK, as long as NtUnloadKey is not implemented */
|
||||||
{
|
{
|
||||||
NTSTATUS Status = NtUnloadKey(NULL);
|
NTSTATUS Status = NtUnloadKey(NULL);
|
||||||
if (Status == STATUS_NOT_IMPLEMENTED)
|
if (!NT_SUCCESS(Status))
|
||||||
{
|
{
|
||||||
/* Create the Administrator profile */
|
/* Create the Administrator profile */
|
||||||
PROFILEINFOW ProfileInfo;
|
PROFILEINFOW ProfileInfo;
|
||||||
HANDLE hToken;
|
HANDLE hToken;
|
||||||
BOOL ret;
|
BOOL ret;
|
||||||
|
|
||||||
|
DPRINT1("NtUnloadKey failed with 0x%lx\n", Status);
|
||||||
|
|
||||||
ret = LogonUserW(AdminInfo.Name,
|
ret = LogonUserW(AdminInfo.Name,
|
||||||
AdminInfo.Domain,
|
AdminInfo.Domain,
|
||||||
AdminInfo.Password,
|
AdminInfo.Password,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue