mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-12-18 05:28:07 +08:00
[HotFix][RegistryPreview]Fix out of bonds array access error (#28803)
This commit is contained in:
parent
1f86eefed1
commit
59fb08cdd8
@ -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";
|
||||||
|
Loading…
Reference in New Issue
Block a user