msi: formating catch \\[ and \\]
Aric Stewart
aric at codeweavers.com
Wed Feb 23 05:37:19 CST 2005
make sure formats like [\\]] and [\\[] work properly
-------------- next part --------------
Index: dlls/msi/format.c
===================================================================
RCS file: /home/wine/wine/dlls/msi/format.c,v
retrieving revision 1.5
diff -u -u -r1.5 format.c
--- dlls/msi/format.c 9 Feb 2005 22:22:25 -0000 1.5
+++ dlls/msi/format.c 23 Feb 2005 11:36:41 -0000
@@ -231,13 +231,13 @@
*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 --;
}
More information about the wine-patches
mailing list