shell32: Fix character count passed into lstrcpnA in SHGetDataFromIDListA.

Francois Gouget fgouget at free.fr
Fri Feb 15 09:14:46 CST 2008


On Fri, 15 Feb 2008, Francois Gouget wrote:

> 
>          if (shortname)
> -            lstrcpynA(pfd->cAlternateFileName, shortname, MAX_PATH);
> +            lstrcpynA(pfd->cAlternateFileName, shortname, 14);
> 
> sizeof(*pfd->cAlternateFileName) would be better than the magic 14 here.

Whoops, no '*' of course.


-- 
Francois Gouget <fgouget at free.fr>              http://fgouget.free.fr/
                 There are 10 types of people in the world...
               those who understand binary and those who don't.



More information about the wine-patches mailing list