fix bug (incorrect validation, on Windows only) in S3D_FILENAME_RESOLVER::ValidateFileName().

This commit is contained in:
jean-pierre charras 2017-05-28 18:56:49 +02:00
parent 1fda668f24
commit 200df95f00
1 changed files with 1 additions and 1 deletions

View File

@ -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;