Author: tfaber
Date: Thu Dec 10 09:14:19 2015
New Revision: 70320
URL:
http://svn.reactos.org/svn/reactos?rev=70320&view=rev
Log:
[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
Modified:
trunk/reactos/dll/win32/syssetup/install.c
Modified: trunk/reactos/dll/win32/syssetup/install.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/syssetup/install…
==============================================================================
--- trunk/reactos/dll/win32/syssetup/install.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/syssetup/install.c [iso-8859-1] Thu Dec 10 09:14:19 2015
@@ -1075,12 +1075,14 @@
/* 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,