regedit: Do not set s_eol to NULL when it will be re-assigned immediately.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
b4d40846dd
commit
4cb93f4557
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue