[PATCH v3] shell32/tests: Add small test for SHGetSetFolderCustomSettings

Dmitry Timoshkov dmitry at baikal.ru
Thu Apr 26 03:55:26 CDT 2018


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



More information about the wine-devel mailing list