mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 18:52:57 +00:00
Close file after processing it. Fixes CIDs 626, 627.
svn path=/trunk/; revision=36809
This commit is contained in:
parent
cd8f013010
commit
ab0284e40d
1 changed files with 1 additions and 0 deletions
|
@ -168,6 +168,7 @@ BOOL PerformRegAction(REGEDIT_ACTION action, LPSTR s)
|
||||||
reg_file = fopen(filename, "r");
|
reg_file = fopen(filename, "r");
|
||||||
if (reg_file) {
|
if (reg_file) {
|
||||||
processRegLines(reg_file, doSetValue);
|
processRegLines(reg_file, doSetValue);
|
||||||
|
fclose(reg_file);
|
||||||
} else {
|
} else {
|
||||||
perror("");
|
perror("");
|
||||||
fprintf(stderr,"%s: Can't open file \"%s\"\n", getAppName(), filename);
|
fprintf(stderr,"%s: Can't open file \"%s\"\n", getAppName(), filename);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue