OS: Windows 11
FPC: 3.3.1
bug description:
when call TFile.GetLastWriteTime , there was a exception throwed : ... file not exists
FPC source file: \fpcsrc\rtl\win\sysutils.pp line 704
if Not GetFileAttributesExW(PWideChar(FileName), GetFileExInfoStandard, @Data) then
the code should be
if Not GetFileAttributesExW(PWideChar(FN), GetFileExInfoStandard, @Data) then
modify code and rebuild fpc to fix it