26 Apr
2018
26 Apr
'18
8:55 a.m.
Louis Lenders <xerox.xerox2000x(a)gmail.com> wrote:
+ GetTempPathW(sizeof(pathW), pathW); + lstrcatW(pathW, somedirW); + GetTempPathW(sizeof(iconpathW), iconpathW); + lstrcatW(iconpathW, somedirW); + lstrcatW(iconpathW, iconW); + GetTempPathW(sizeof(Desktop_inipathW), Desktop_inipathW);
GetTempPath() takes number of characters, not bytes. Since the buffer sizes are hardcoded anyway it would be simpler to just use constants. -- Dmitry.