Merge pull request #1053 from nosoop/remote-ext-filename-check

Check short name for remote extensions
This commit is contained in:
David Anderson 2019-11-12 11:45:02 +09:00 committed by GitHub
commit d6e518838f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1364,7 +1364,7 @@ bool CLocalExtension::IsSameFile(const char *file)
bool CRemoteExtension::IsSameFile(const char *file)
{
/* :TODO: this could be better, but no one uses this API anyway. */
return strcmp(file, m_Path.c_str()) == 0;
/* Check full path and name passed in from LoadExternal */
return strcmp(file, m_Path.c_str()) == 0 || strcmp(file, m_File.c_str()) == 0;
}