Fix checking size of security URL in wxWebviewIE
Allows to utilize the entire buffer when necessary.
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user