wininet: Fixed buffer size check in urlcache_create_file_pathA.

This commit is contained in:
Piotr Caban 2013-04-01 13:14:13 +02:00 committed by Alexandre Julliard
parent 96fb659ba9
commit a59210a6e8
1 changed files with 1 additions and 1 deletions

View File

@ -1065,7 +1065,7 @@ static BOOL urlcache_create_file_pathA(
dir_len = 0;
nRequired = (path_len + dir_len + file_name_len) * sizeof(char);
if (nRequired < *lpBufferSize)
if (nRequired <= *lpBufferSize)
{
WideCharToMultiByte(CP_ACP, 0, pContainer->path, -1, szPath, path_len, NULL, NULL);
if(dir_len) {