未验证 提交 d64b8af6 编写于 作者: L Levi Broderick 提交者: GitHub

Add missing SUCCEEDED() within conditional (#67321)

Addresses CodeQL rule cpp/hresult-boolean-conversion
上级 a0d72123
......@@ -6964,8 +6964,8 @@ void DumpMetaInfo(_In_ __nullterminated const WCHAR* pwzFileName, _In_opt_z_ con
if(pch && (!_wcsicmp(pch+1,W("lib")) || !_wcsicmp(pch+1,W("obj"))))
{ // This works only when all the rest does not
// Init and run.
if (MetaDataGetDispenser(CLSID_CorMetaDataDispenser,
IID_IMetaDataDispenserEx, (void **)&g_pDisp))
if (SUCCEEDED(MetaDataGetDispenser(CLSID_CorMetaDataDispenser,
IID_IMetaDataDispenserEx, (void **)&g_pDisp)))
{
WCHAR *pwzObjFileName=NULL;
if (pszObjFileName)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册