[PATCH 2/2] regedit: Do not set s_eol to NULL when it will be re-assigned immediately
Hugh McMaster
hugh.mcmaster at outlook.com
Wed Aug 31 04:26:06 CDT 2016
Signed-off-by: Hugh McMaster <hugh.mcmaster at outlook.com>
---
programs/regedit/regproc.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/programs/regedit/regproc.c b/programs/regedit/regproc.c
index 648bf67..b8ba936 100644
--- a/programs/regedit/regproc.c
+++ b/programs/regedit/regproc.c
@@ -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;
}
}
--
2.7.4
More information about the wine-patches
mailing list