On 08.09.2013 15:29, Tomas Hajny wrote:
of ExpandFilename - well, that may be the case, but that is not special
for Windows and it should be the responsibility of the programmer either
not to change the current directory in other threads,
But GetDir just does that: it changes the current directory if it
tries to find the current directory on a drive that is not the current
drive.
It then calls SetCurrentDirectory with only the drive letter, and
calls GetCurrentDirectory again.
Good, thanks for the pointer. We may indeed want to add some safeguards to
the Windows GetDir implementation (or possibly check some alternative
solution for finding out the current directory on other drives).
Would be a solution to a problem that does not exist in the way that
it's discussed here. See my mail to Bart.
Regards,
Sven
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal