mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-11-24 04:12:32 +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++;
|
||||
}
|
||||
|
||||
if (value[i - 1] != '\\' && value[i] == '"')
|
||||
if (i < value.Length && value[i - 1] != '\\' && value[i] == '"')
|
||||
{
|
||||
// Don't allow non-escaped quotes
|
||||
registryValue.Type = "ERROR";
|
||||
|
Loading…
Reference in New Issue
Block a user