[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:
Thomas Faber 2015-12-10 09:14:19 +00:00
parent dcbfa5af55
commit f7500c28d1

View file

@ -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,