Commit d2a3832f authored by Juan Lang's avatar Juan Lang Committed by Alexandre Julliard

wininet: Fix off-by-one error.

parent bea8d0a7
......@@ -877,7 +877,7 @@ static BOOL URLCache_LocalFileNameToPathW(
}
nRequired = (path_len + DIR_LENGTH + file_name_len + 1) * sizeof(WCHAR);
if (nRequired < *lpBufferSize)
if (nRequired <= *lpBufferSize)
{
int dir_len;
......
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