Fix checking size of security URL in wxWebviewIE

Allows to utilize the entire buffer when necessary.
This commit is contained in:
Maarten Bent
2020-07-28 21:05:17 +02:00
parent 43f84a9c18
commit 785c448870

View File

@@ -1773,7 +1773,7 @@ HRESULT STDMETHODCALLTYPE VirtualProtocol::ParseUrl(
case wxPARSE_SECURITY_URL:
case wxPARSE_SECURITY_DOMAIN:
{
if ( cchResult <= secLen )
if ( cchResult < secLen )
return S_FALSE;
wcscpy(pwzResult, m_handler->GetSecurityURL().wc_str());
*pcchResult = secLen;