don't end a string if the last character outputted was an escape, will cause output...
authorRoyce Mitchell III <royce3@ev1.net>
Sun, 13 Mar 2005 07:38:40 +0000 (07:38 +0000)
committerRoyce Mitchell III <royce3@ev1.net>
Sun, 13 Mar 2005 07:38:40 +0000 (07:38 +0000)
svn path=/trunk/; revision=13996

reactos/tools/wmc/write.c

index a919cd9..d2b5a96 100644 (file)
@@ -360,7 +360,7 @@ static char *make_string(WCHAR *uc, int len, int codepage)
                                cptr += n;
                                b += n;
                        }
-                       if(i < len-1 && b >= 72)
+                       if(i < len-1 && b >= 72 && cptr[-1] != '\\')
                        {
                                *cptr++ = '"';
                                *cptr++ = ',';
@@ -424,7 +424,7 @@ static char *make_string(WCHAR *uc, int len, int codepage)
                                        b += n;
                                }
                        }
-                       if(i < len-1 && b >= 72)
+                       if(i < len-1 && b >= 72 && cptr[-1] != '\\')
                        {
                                *cptr++ = '"';
                                *cptr++ = ',';