On Mon, 22 Apr 2013 20:04:02 +0300
Juha Manninen <[email protected]> wrote:

> In rev. #40849 I replaced GetAllFilesMask with AllFilesMask everywhere.
> GetAllFilesMask is defined in LCL, AllFilesMask is defined in FPC's libs.
> It was meant to be a cleanup and removal of duplicate code. It seems
> that it was wrong. AllFilesMask is '*' on Windows, too.
> GetAllFilesMask returned *.* on Windows.

See here:
http://lazarus-ccr.sourceforge.net/docs/rtl/system/allfilesmask.html

 
> There is a bug somewhere, IMO it is in FPC. AllFilesMask is related to
> file operations.
> It should not be different between LCL and other code using FPC.
> 
> '*:*' is typically used on Windows and FindFirst/FindNext return also
> files without suffix when it is used.
> I just fixed TFileSearcher to match the logic (issue #24306).


Mattias

--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to