https://git.reactos.org/?p=reactos.git;a=commitdiff;h=249dc9716564859bfc76b…
commit 249dc9716564859bfc76be9b4a38af892ad3db3a
Author: Eric Kohl <eric.kohl(a)reactos.org>
AuthorDate: Tue May 29 12:49:24 2018 +0200
Commit: Eric Kohl <eric.kohl(a)reactos.org>
CommitDate: Tue May 29 12:49:24 2018 +0200
[SYSSETUP] Fix an issue that may be caused by a missing security settings file
Found by Serge Gautherie
---
dll/win32/syssetup/security.c | 15 ++++++---------
1 file changed, 6 insertions(+), 9 deletions(-)
diff --git a/dll/win32/syssetup/security.c b/dll/win32/syssetup/security.c
index d5538a5b6b..4ef67fbab3 100644
--- a/dll/win32/syssetup/security.c
+++ b/dll/win32/syssetup/security.c
@@ -589,7 +589,7 @@ ApplyRegistryValues(
VOID
InstallSecurity(VOID)
{
- HINF hSecurityInf = INVALID_HANDLE_VALUE;
+ HINF hSecurityInf;
PWSTR pszSecurityInf;
// if (IsServer())
@@ -603,16 +603,13 @@ InstallSecurity(VOID)
NULL,
INF_STYLE_WIN4,
NULL);
- if (hSecurityInf == INVALID_HANDLE_VALUE)
+ if (hSecurityInf != INVALID_HANDLE_VALUE)
{
- DPRINT1("SetupOpenInfFileW failed\n");
- return;
- }
+ InstallPrivileges(hSecurityInf);
+ ApplyRegistryValues(hSecurityInf);
- InstallPrivileges(hSecurityInf);
- ApplyRegistryValues(hSecurityInf);
-
- SetupCloseInfFile(hSecurityInf);
+ SetupCloseInfFile(hSecurityInf);
+ }
/* Hack */
SetPrimaryDomain(L"WORKGROUP", NULL);