mshtml: Fix potential 1 byte 0 overwrite.

This commit is contained in:
Marcus Meissner 2008-03-20 11:08:23 +01:00 committed by Alexandre Julliard
parent 5bec7d4bbf
commit 4603f4edfa
1 changed files with 1 additions and 1 deletions

View File

@ -848,7 +848,7 @@ static HRESULT WINAPI ResProtocolInfo_ParseUrl(IInternetProtocolInfo *iface, LPC
return E_INVALIDARG;
len = ptr - (pwzUrl + sizeof(wszRes)/sizeof(WCHAR));
if(len > sizeof(file_part)/sizeof(WCHAR)) {
if(len >= sizeof(file_part)/sizeof(WCHAR)) {
FIXME("Too long URL\n");
return MK_E_SYNTAX;
}