wininet: Fix off-by-one error.

This commit is contained in:
Juan Lang 2011-03-03 12:17:09 -08:00 committed by Alexandre Julliard
parent bea8d0a713
commit d2a3832fc3
1 changed files with 1 additions and 1 deletions

View File

@ -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;