1
0
Fork 0

Fix file check

This commit is contained in:
ζeh Matt 2023-09-21 12:46:31 +03:00
parent ce73e9cdf7
commit e2b658f0a3
No known key found for this signature in database
GPG Key ID: 18CE582C71A225B0
1 changed files with 1 additions and 1 deletions

View File

@ -94,7 +94,7 @@ static std::string pluginGetFullPath(std::string pluginName)
// Check if the plugin is in a sub-directory.
std::string pluginPathSubdir = pluginPath + "\\" + pluginName + pluginExtension;
if(PathIsDirectoryW(StringUtils::Utf8ToUtf16(pluginPathSubdir).c_str()))
if(PathFileExistsW(StringUtils::Utf8ToUtf16(pluginPathSubdir).c_str()))
{
// Plugin resides in sub directory.
return pluginPathSubdir;