[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 authored and Geoffrey McRae committed 2025-09-13 14:34:04 +10:00
1 parent b6ceb72855
commit d00f12875c
1 file changed
+2 -2
+2 -2
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);