[SYSSETUP]
[reactos.git] / reactos / dll / win32 / syssetup / install.c
index 22906a4..0141624 100644 (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,