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

This commit is contained in:
Aric Stewart 2005-02-23 12:44:25 +00:00 committed by Alexandre Julliard
parent e2dab32daa
commit 713dc8f60c
1 changed files with 2 additions and 2 deletions

View File

@ -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 --;
}