Author: gschneider
Date: Sat Oct 18 14:42:31 2008
New Revision: 36809
URL:
http://svn.reactos.org/svn/reactos?rev=36809&view=rev
Log:
Close file after processing it. Fixes CIDs 626, 627.
Modified:
trunk/reactos/base/applications/regedit/regedit.c
Modified: trunk/reactos/base/applications/regedit/regedit.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/regedit/…
==============================================================================
--- trunk/reactos/base/applications/regedit/regedit.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/regedit/regedit.c [iso-8859-1] Sat Oct 18 14:42:31
2008
@@ -168,6 +168,7 @@
reg_file = fopen(filename, "r");
if (reg_file) {
processRegLines(reg_file, doSetValue);
+ fclose(reg_file);
} else {
perror("");
fprintf(stderr,"%s: Can't open file
\"%s\"\n", getAppName(), filename);