1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-02-07 04:10:08 +00:00

ComSmartPtr: Update implementation slightly so that error codes can be inspected during debugging

This commit is contained in:
reuk 2024-09-12 16:37:09 +01:00
parent 8754d87900
commit 470ada4454

View file

@ -154,10 +154,10 @@ public:
{
ComSmartPtr<OtherComClass> destObject;
if (QueryInterface (destObject) == S_OK)
return destObject;
if (const auto hr = QueryInterface (destObject); FAILED (hr))
return {};
return {};
return destObject;
}
/** Increments refcount. */