未验证 提交 be684967 编写于 作者: A Aaron Robinson 提交者: GitHub

Fix W^X flag for setting `ITypeInfo` (#75045)

* Fix W^X flag for setting ITypeInfo
上级 5eead36b
......@@ -3851,7 +3851,8 @@ void ComMethodTable::SetITypeInfo(ITypeInfo *pNew)
}
CONTRACTL_END;
if (InterlockedCompareExchangeT(&m_pITypeInfo, pNew, NULL) == NULL)
ExecutableWriterHolder<ComMethodTable> comMTWriterHolder(this, sizeof(ComMethodTable));
if (InterlockedCompareExchangeT(&comMTWriterHolder.GetRW()->m_pITypeInfo, pNew, NULL) == NULL)
{
SafeAddRef(pNew);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册