mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 02:03:12 +02:00
fix bug (incorrect validation, on Windows only) in S3D_FILENAME_RESOLVER::ValidateFileName().
This commit is contained in:
parent
1fda668f24
commit
200df95f00
@ -1022,7 +1022,7 @@ bool S3D_FILENAME_RESOLVER::ValidateFileName( const wxString& aFileName, bool& h
|
||||
// if we see the :\ pattern then it must be a drive designator
|
||||
if( pos0 != wxString::npos )
|
||||
{
|
||||
size_t pos1 = aFileName.find( wxT( ":\\" ) );
|
||||
size_t pos1 = filename.find( wxT( ":\\" ) );
|
||||
|
||||
if( pos1 != wxString::npos && ( pos1 != pos0 || pos1 != 1 ) )
|
||||
return false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user