diff options
| author | Pétur Darri Pétursson <11541598+PeturDarri@users.noreply.github.com> | 2025-01-01 23:24:37 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-01 15:24:37 -0800 |
| commit | a13ef050996c2792ff3c16b6424d3a6336e56a58 (patch) | |
| tree | 48a04e32c6b760c3297252ae70929b46934714d3 | |
| parent | f3b916ebe529abbc35a351b20b2c70129a193208 (diff) | |
Fixed incorrect condition in Session::queryInterface. (#5978)
An AND operator was used where an OR should have been used.
| -rw-r--r-- | source/slang/slang.cpp | 2 |
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); |
