MCPcopy Create free account
hub / github.com/SpecialKO/SpecialK / SK_SafeQueryInterface

Function SK_SafeQueryInterface

src/com_util.cpp:548–569  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

546
547
548HRESULT
549SK_SafeQueryInterface (IUnknown* pObj, REFIID riid, void** pUnk)
550{
551 if (pObj != nullptr)
552 {
553 __try
554 {
555 return
556 pObj->QueryInterface (riid, pUnk);
557 }
558
559 __except ( (GetExceptionCode () == EXCEPTION_ACCESS_VIOLATION)
560 ? EXCEPTION_EXECUTE_HANDLER :
561 EXCEPTION_CONTINUE_SEARCH )
562 {
563 SK_LOG0 ( ( L"Access Violation Querying Interface For ..." ),
564 L"COM Helper" );
565 }
566 }
567
568 return E_POINTER;
569}

Callers 1

getDeviceMethod · 0.85

Calls 1

QueryInterfaceMethod · 0.45

Tested by

no test coverage detected