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

Alexandre Julliard julliard at winehq.org
Thu Sep 1 09:55:28 CDT 2016


Module: wine
Branch: master
Commit: 4cb93f4557d69edaa60ad79605427c76f3af4058
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=4cb93f4557d69edaa60ad79605427c76f3af4058

Author: Hugh McMaster <hugh.mcmaster at outlook.com>
Date:   Wed Aug 31 09:26:06 2016 +0000

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

Signed-off-by: Hugh McMaster <hugh.mcmaster at outlook.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 programs/regedit/regproc.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/programs/regedit/regproc.c b/programs/regedit/regproc.c
index c33e28d..7c5105f 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;
         }
     }
 




More information about the wine-cvs mailing list