wininet: Fix off-by-one error.
This commit is contained in:
parent
bea8d0a713
commit
d2a3832fc3
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue