Fix ForceDirectoriesUtf8 for Windows Apps. See related fpc bugreport https://gitlab.com/freepascal.org/fpc/source/-/issues/40558.

This commit is contained in:
Bart 2023-12-14 17:54:15 +01:00
parent 78816cede1
commit 5335e14783

View File

@ -1264,7 +1264,7 @@ var
begin
Result := False;
ADrv := ExtractFileDrive(Dir);
if (ADrv<>'') and (not DirectoryExistsUTF8(ADrv))
if (ADrv<>'') and (not DirectoryExistsUTF8(ADrv+DirectorySeparator))
{$IFNDEF FORCEDIR_NO_UNC_SUPPORT} and (not IsUncDrive(ADrv)){$ENDIF} then Exit;
if Dir='' then
begin