Please test with fpc trunk.
As a side note: TRegIniFile was created long, long time ago to ease the transition from using ini-files to using the registry (win 3.x -> win 95).
Affter more than 25 year, one might expect developers to use TRegistry directly.
The fpc implementation of TRegInifile has been flawed for many, many years and, while it would build for non windows platforms as well, it was so utterly broken on those platforms that it's use is now deprecated and TRegIniFile (and TRegistrIniFile, which is a pointless wrapper around TRegIniFile) are removed for that platform in the future (fpc 4.0).
Bart