Recent

Author Topic: a bug about FPC spurce  (Read 446 times)

Big Hawk

  • Newbie
  • Posts: 3
a bug about FPC spurce
« on: December 08, 2025, 02:29:27 am »
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

dsiders

  • Hero Member
  • *****
  • Posts: 1511
Re: a bug about FPC spurce
« Reply #1 on: December 08, 2025, 02:44:18 am »
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

This is not the FPC bug tracker. Links appear on the left-hand side of this page.

Bart

  • Hero Member
  • *****
  • Posts: 5668
    • Bart en Mariska's Webstek
Re: a bug about FPC spurce
« Reply #2 on: December 08, 2025, 07:14:59 pm »
Reported as issue 41534 with patch attached.

Bart

Bart

  • Hero Member
  • *****
  • Posts: 5668
    • Bart en Mariska's Webstek
Re: a bug about FPC spurce
« Reply #3 on: December 08, 2025, 10:35:16 pm »
Reported as issue 41534 with patch attached.

And fixed already in fpc main (in commit 81a55adf).

Bart

 

TinyPortal © 2005-2018