Commit 4cb93f45 authored by Hugh McMaster's avatar Hugh McMaster Committed by Alexandre Julliard

regedit: Do not set s_eol to NULL when it will be re-assigned immediately.

parent b4d40846
......@@ -727,7 +727,6 @@ static void processRegLinesA(FILE *in, char* first_chars)
MoveMemory(s_eol - 1, next_line, chars_in_buf - (next_line - s) + 1);
chars_in_buf -= next_line - s_eol + 1;
s_eol = 0;
continue;
}
......@@ -740,7 +739,6 @@ static void processRegLinesA(FILE *in, char* first_chars)
processRegEntry(lineW, FALSE);
HeapFree(GetProcessHeap(), 0, lineW);
line = s_eol + 1;
s_eol = 0;
}
}
processRegEntry(NULL, FALSE);
......@@ -846,7 +844,6 @@ static void processRegLinesW(FILE *in)
MoveMemory(s_eol - 1, NextLine, (CharsInBuf - (NextLine - s) + 1)*sizeof(WCHAR));
CharsInBuf -= NextLine - s_eol + 1;
s_eol = 0;
continue;
}
......@@ -857,7 +854,6 @@ static void processRegLinesW(FILE *in)
processRegEntry(line, TRUE);
line = s_eol + 1;
s_eol = 0;
}
}
......
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