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:
parent
8754d87900
commit
470ada4454
1 changed files with 3 additions and 3 deletions
|
|
@ -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. */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue