From 785c4488708b2c444ecf1ec25423b72239a77a9c Mon Sep 17 00:00:00 2001 From: Maarten Bent Date: Tue, 28 Jul 2020 21:05:17 +0200 Subject: [PATCH] Fix checking size of security URL in wxWebviewIE Allows to utilize the entire buffer when necessary. --- src/msw/webview_ie.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/msw/webview_ie.cpp b/src/msw/webview_ie.cpp index cc85f27c5b..96847b1a01 100644 --- a/src/msw/webview_ie.cpp +++ b/src/msw/webview_ie.cpp @@ -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;