Re: shell32: Fix character count passed into lstrcpnA in SHGetDataFromIDListA.
if (shortname) - lstrcpynA(pfd->cAlternateFileName, shortname, MAX_PATH); + lstrcpynA(pfd->cAlternateFileName, shortname, 14); sizeof(*pfd->cAlternateFileName) would be better than the magic 14 here. -- Francois Gouget <fgouget(a)free.fr> http://fgouget.free.fr/ You can have my guns when you pry them from my kids cold, dead hands.
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(a)free.fr> http://fgouget.free.fr/ There are 10 types of people in the world... those who understand binary and those who don't.
participants (1)
-
Francois Gouget