From fbff6fe0f0af41d14e98b806c02a94388367be6b Mon Sep 17 00:00:00 2001 From: Royce Mitchell III Date: Sun, 13 Mar 2005 07:38:40 +0000 Subject: [PATCH] don't end a string if the last character outputted was an escape, will cause output file to be invalid svn path=/trunk/; revision=13996 --- reactos/tools/wmc/write.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reactos/tools/wmc/write.c b/reactos/tools/wmc/write.c index a919cd904bd..d2b5a966a88 100644 --- a/reactos/tools/wmc/write.c +++ b/reactos/tools/wmc/write.c @@ -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++ = ',';