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

_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to