Louis Lenders xerox.xerox2000x@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.