[fpc-pascal] FindFirst...FindClose

Tomas Hajny XHajT03 at mbox.vol.cz
Mon May 18 23:14:03 CEST 2009


On 18 May 09, at 22:10, Jonas Maebe wrote:
> On 18 May 2009, at 21:03, Michael Van Canneyt wrote:
> 
> > I checked the windows code, and FindClose explicitly checks that
> > the searchrec record contains a valid handle (i.e. NOT
> > INVALID_HANDLE_VALUE), so all platforms would behave the same.
> >
> > Opinions ? If no-one objects, I'll implement the 'fix', it's only
> > 2 lines of code.
> 
> It's fine by me.

No problem here either, just make sure that you check whether 
SysUtils.FindFirst and Dos.FindFirst are consistent in this context 
(i.e. probably more than two lines of code are necessary even if 
disregarding any other platforms out there apart from Unix ;-) ).

Tomas




More information about the fpc-pascal mailing list