From 5293815bf6ec415c75787567630d2c0e891f8f2b Mon Sep 17 00:00:00 2001 From: nosoop Date: Mon, 29 Jul 2019 03:41:29 -0700 Subject: [PATCH] Check other filename sources on remote extensions --- core/logic/ExtensionSys.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/logic/ExtensionSys.cpp b/core/logic/ExtensionSys.cpp index 4409a94a..7559172c 100644 --- a/core/logic/ExtensionSys.cpp +++ b/core/logic/ExtensionSys.cpp @@ -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; }