[REGEDIT]
authorHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Tue, 2 Oct 2012 23:43:55 +0000 (23:43 +0000)
committerHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Tue, 2 Oct 2012 23:43:55 +0000 (23:43 +0000)
- Don't forget to close the file handle.

svn path=/trunk/; revision=57463

reactos/base/applications/regedit/regedit.c

index 76534ae..aea971f 100644 (file)
@@ -175,6 +175,8 @@ BOOL PerformRegAction(REGEDIT_ACTION action, LPTSTR s, BOOL silent)
                         LoadString(hInst, IDS_IMPORT_OK, szText, COUNT_OF(szText));
                         InfoMessageBox(NULL, MB_OK | MB_ICONINFORMATION, szTitle, szText, filename);
                     }
                         LoadString(hInst, IDS_IMPORT_OK, szText, COUNT_OF(szText));
                         InfoMessageBox(NULL, MB_OK | MB_ICONINFORMATION, szTitle, szText, filename);
                     }
+
+                    fclose(fp);
                 }
                 else
                 {
                 }
                 else
                 {