Commit b058648a authored by Alexander Nicolaysen Sørnes's avatar Alexander Nicolaysen Sørnes Committed by Alexandre Julliard

regedit: Fix concat handling for ANSI files.

parent f7e56d19
...@@ -666,13 +666,22 @@ void processRegLinesA(FILE *in) ...@@ -666,13 +666,22 @@ void processRegLinesA(FILE *in)
if (s_eol > line && *(s_eol-1) == '\\') { if (s_eol > line && *(s_eol-1) == '\\') {
int c; int c;
s = s_eol-1; s = s_eol-1;
/* The following error protection could be made more self-
* correcting but I thought it not worth trying. do
*/ {
if ((c = fgetc (in)) == EOF || c != ' ' || c = fgetc(in);
(c = fgetc (in)) == EOF || c != ' ') } while(c == ' ' || c == '\t');
if(c == EOF)
{
fprintf(stderr,"%s: ERROR - invalid continuation.\n", fprintf(stderr,"%s: ERROR - invalid continuation.\n",
getAppName()); getAppName());
}
else
{
*s = c;
s++;
}
continue; continue;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment