summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
Diffstat (limited to 'source')
-rw-r--r--source/slang/slang.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/slang/slang.cpp b/source/slang/slang.cpp
index 9d8e3a68b..38988ca46 100644
--- a/source/slang/slang.cpp
+++ b/source/slang/slang.cpp
@@ -608,7 +608,7 @@ Session::queryInterface(SlangUUID const& uuid, void** outObject)
return SLANG_OK;
}
- if (uuid == ISlangUnknown::getTypeGuid() && uuid == IGlobalSession::getTypeGuid())
+ if (uuid == ISlangUnknown::getTypeGuid() || uuid == IGlobalSession::getTypeGuid())
{
addReference();
*outObject = static_cast<slang::IGlobalSession*>(this);