[BROWSEUI] Fix assertion in CACLCustomMRU::AddMRUString

CORE-9281
This commit is contained in:
Hirofumi Katayama 2020-10-05 08:49:42 +09:00
parent 179da0b237
commit 14c18657bc

View file

@ -204,11 +204,10 @@ HRESULT CACLCustomMRU::LoadMRUList(DWORD dwMax)
HRESULT STDMETHODCALLTYPE CACLCustomMRU::AddMRUString(LPCWSTR pwszEntry)
{
ATLASSERT(m_MRUData.GetSize() <= m_MRUList.GetLength());
if (m_bTypedURLs)
return E_FAIL;
ATLASSERT(m_MRUData.GetSize() <= m_MRUList.GetLength());
m_bDirty = true;
CStringW NewElement = pwszEntry;