[fpc-pascal] DoDirSeparators and special filenames on Windows

Sven Barth pascaldragon at googlemail.com
Sun Sep 8 19:34:08 CEST 2013


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



More information about the fpc-pascal mailing list