Fix for is_potential_path that caused all strings to be reported as paths

This commit is contained in:
ridiculousfish 2012-01-30 09:59:48 -08:00
parent 8e4e30d266
commit ed66a46113

View file

@ -151,7 +151,7 @@ static bool is_potential_path( const wcstring &cpath )
wcstring ent;
while (wreaddir(dir, ent))
{
if( wcsncmp( base_name.c_str(), base_name.c_str(), base_name.length() ) == 0 )
if( wcsncmp( ent.c_str(), base_name.c_str(), base_name.length() ) == 0 )
{
res = true;
break;