From 9a2cf81bc429769701e1949f5b2735982029c591 Mon Sep 17 00:00:00 2001 From: Royce Mitchell III Date: Sun, 13 Mar 2005 07:37:33 +0000 Subject: [PATCH 1/1] don't end a string if the last character outputted was an escape, will cause output file to be invalid svn path=/branches/xmlbuildsystem/; revision=13995 --- reactos/tools/wmc/write.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/reactos/tools/wmc/write.c b/reactos/tools/wmc/write.c index a919cd904bd..7571eeb243e 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++ = ','; @@ -577,7 +577,7 @@ void write_bin_files(void) for (lbp = lanblockhead; lbp; lbp = lbp->next) { - unsigned offs = 4 * (lbp->nblk * 3 + 1); + unsigned offs = 4 * (lbp->nblk * 3 + 1); char *cptr = NULL; for(i = 0; i < ntab; i++) -- 2.17.1