[SYSSETUP]
[reactos.git] / reactos / dll / win32 / syssetup / install.c
index 3121996..a2faefb 100644 (file)
@@ -908,9 +908,9 @@ InstallReactOS(HINSTANCE hInstance)
     }
 
     /* Set the Domain SID (aka Computer SID) */
-    if (!SamSetDomainSid(DomainSid))
+    if (SetAccountDomain(NULL, DomainSid) != STATUS_SUCCESS)
     {
-        FatalError("SamSetDomainSid() failed!");
+        FatalError("SetAccountDomain() failed!");
         RtlFreeSid(DomainSid);
         return 0;
     }