Commit a59210a6 authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

wininet: Fixed buffer size check in urlcache_create_file_pathA.

parent 96fb659b
......@@ -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) {
......
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