[idd] installer: dont make the reg key owned by USER MODE DRIVERS

Windows 11 does not allow the key to be owned by USER MODE DRIVERS
granting the user control via the ACL should resolve this
This commit is contained in:
Geoffrey McRae
2025-09-13 14:22:48 +10:00
committed by Geoffrey McRae
parent b6ceb72855
commit d00f12875c

View File

@@ -132,8 +132,8 @@ DWORD ensureKeyWithAce()
}
ec = SetSecurityInfo(hKey, SE_REGISTRY_KEY,
OWNER_SECURITY_INFORMATION | DACL_SECURITY_INFORMATION,
sid, NULL, newDacl, NULL);
DACL_SECURITY_INFORMATION,
NULL, NULL, newDacl, NULL);
if (newDacl) LocalFree(newDacl);
if (sid) LocalFree(sid);