mirror of
https://github.com/reactos/reactos.git
synced 2025-02-25 01:39:30 +00:00
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
This commit is contained in:
parent
b2f5efa2cf
commit
fbff6fe0f0
1 changed files with 2 additions and 2 deletions
|
@ -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++ = ',';
|
||||
|
|
Loading…
Reference in a new issue