|
|
@@ -1193,7 +1193,7 @@ void __fastcall TCustomIniFileStorage::WriteBinaryData(const UnicodeString Name,
|
|
|
TIniFileStorage * __fastcall TIniFileStorage::CreateFromPath(const UnicodeString AStorage)
|
|
|
{
|
|
|
// The code was originally inline in the parent contructor call in the TIniFileStorage::TIniFileStorage [public originally].
|
|
|
- // But if the TMemIniFile contructor throws (e.g. because the INI file is locked), the exception causes access violation.
|
|
|
+ // But if the TMemIniFile constructor throws (e.g. because the INI file is locked), the exception causes access violation.
|
|
|
// Moving the code to a factory solves this.
|
|
|
TMemIniFile * IniFile = new TMemIniFile(AStorage);
|
|
|
return new TIniFileStorage(AStorage, IniFile);
|