Commit 4603f4ed authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

mshtml: Fix potential 1 byte 0 overwrite.

parent 5bec7d4b
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment