mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-08 04:07:40 +02:00
[HotFix][RegistryPreview]Fix out of bonds array access error (#28803)
This commit is contained in:
@@ -445,7 +445,7 @@ namespace RegistryPreview
|
|||||||
i++;
|
i++;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (value[i - 1] != '\\' && value[i] == '"')
|
if (i < value.Length && value[i - 1] != '\\' && value[i] == '"')
|
||||||
{
|
{
|
||||||
// Don't allow non-escaped quotes
|
// Don't allow non-escaped quotes
|
||||||
registryValue.Type = "ERROR";
|
registryValue.Type = "ERROR";
|
||||||
|
|||||||
Reference in New Issue
Block a user