View Issue Details

IDProjectCategoryView StatusLast Update
0037483FPCFCLpublic2020-08-04 15:51
ReporterC Western Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
PlatformWindows 
Product Version3.3.1 
Summary0037483: Patch for TRegIniFile.CloseSection
DescriptionWithout the attached patch, the sequence:

  IniSettings :=TRegistryIniFile.Create(KeyName)
  try
    IniSettings.ReadSectionValues(AutoSaveKey, Files);
  finally
    IniSettings.Free;
  end;

crashes, as a key is closed twice.
Additional InformationRelated to 0036663: Broken TRegistryIniFile
TagsNo tags attached.
Fixed in Revision
FPCOldBugId
FPCTarget
Attached Files

Activities

C Western

2020-08-04 15:51

reporter  

regini.inc.patch (322 bytes)   
Index: fcl-registry/src/regini.inc
===================================================================
--- fcl-registry/src/regini.inc	(revision 46225)
+++ fcl-registry/src/regini.inc	(working copy)
@@ -318,5 +318,6 @@
 procedure TRegIniFile.CloseSection;
 begin
   CloseKey(CurrentKey);
+  fCurrentKey := 0;
 end;
 
regini.inc.patch (322 bytes)   

Issue History

Date Modified Username Field Change
2020-08-04 15:51 C Western New Issue
2020-08-04 15:51 C Western File Added: regini.inc.patch