mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 09:03:25 +00:00
[SYSSETUP] Fix an issue that may be caused by a missing security settings file
Found by Serge Gautherie
This commit is contained in:
parent
67e45c41ee
commit
249dc97165
1 changed files with 6 additions and 9 deletions
|
@ -589,7 +589,7 @@ ApplyRegistryValues(
|
||||||
VOID
|
VOID
|
||||||
InstallSecurity(VOID)
|
InstallSecurity(VOID)
|
||||||
{
|
{
|
||||||
HINF hSecurityInf = INVALID_HANDLE_VALUE;
|
HINF hSecurityInf;
|
||||||
PWSTR pszSecurityInf;
|
PWSTR pszSecurityInf;
|
||||||
|
|
||||||
// if (IsServer())
|
// if (IsServer())
|
||||||
|
@ -603,16 +603,13 @@ InstallSecurity(VOID)
|
||||||
NULL,
|
NULL,
|
||||||
INF_STYLE_WIN4,
|
INF_STYLE_WIN4,
|
||||||
NULL);
|
NULL);
|
||||||
if (hSecurityInf == INVALID_HANDLE_VALUE)
|
if (hSecurityInf != INVALID_HANDLE_VALUE)
|
||||||
{
|
{
|
||||||
DPRINT1("SetupOpenInfFileW failed\n");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
InstallPrivileges(hSecurityInf);
|
InstallPrivileges(hSecurityInf);
|
||||||
ApplyRegistryValues(hSecurityInf);
|
ApplyRegistryValues(hSecurityInf);
|
||||||
|
|
||||||
SetupCloseInfFile(hSecurityInf);
|
SetupCloseInfFile(hSecurityInf);
|
||||||
|
}
|
||||||
|
|
||||||
/* Hack */
|
/* Hack */
|
||||||
SetPrimaryDomain(L"WORKGROUP", NULL);
|
SetPrimaryDomain(L"WORKGROUP", NULL);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue