1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-04-30 15:49:41 +02:00

Reset temp directory if found to be on FAT drive

This commit is contained in:
Leland Lucius 2021-01-11 11:09:34 -06:00
parent 28a286c656
commit c7a8b824a1

View File

@ -662,6 +662,14 @@ bool FileNames::IsTempDirectoryNameOK( const FilePath & Name )
wxFileName cmpFile( Name );
wxString NameCanonical = cmpFile.GetLongPath( ) + "\\";
#endif
if (FileNames::FATFilesystemDenied(NameCanonical,
XO("The temporary files direcotory is on a FAT formatted drive.\n"
"Resetting to default location.")))
{
return false;
}
return !(NameCanonical.StartsWith( BadPath ));
}