mirror of
https://github.com/august-alt/gpui.git
synced 2025-03-14 12:58:39 +03:00
wip: add verify for valuePrefix and explicitValue (they cannot be announced at the same time)
This commit is contained in:
parent
44252f3303
commit
f875cefc6d
@ -546,6 +546,14 @@ public:
|
||||
return;
|
||||
}
|
||||
|
||||
// https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2008-r2-and-2008/cc731025(v=ws.10)
|
||||
// explicitValue cannot be used with the valuePrefix attribute.
|
||||
if (listElement->valuePrefix.size() > 0 && listElement->explicitValue)
|
||||
{
|
||||
qWarning() << "Unable to get valid policy listElement (explicitValue cannot be used with the valuePrefix attribute).";
|
||||
return;
|
||||
}
|
||||
|
||||
RegistryEntryType registryEntryType = listElement->expandable ? RegistryEntryType::REG_EXPAND_SZ
|
||||
: RegistryEntryType::REG_SZ;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user