Commit 713dc8f6 authored by Aric Stewart's avatar Aric Stewart Committed by Alexandre Julliard

Make sure formats like [\\]] and [\\[] work properly.

parent e2dab32d
......@@ -231,13 +231,13 @@ static BOOL find_next_outermost_key(LPCWSTR source, DWORD len_remaining,
*nested = FALSE;
for (i = 1; (*mark - source) + i < len_remaining && count > 0; i++)
{
if ((*mark)[i] == '[')
if ((*mark)[i] == '[' && (*mark)[i-1] != '\\')
{
count ++;
total_count ++;
*nested = TRUE;
}
else if ((*mark)[i] == ']')
else if ((*mark)[i] == ']' && (*mark)[i-1] != '\\')
{
count --;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment