[2/2] gdi32/tests: Added tests for GetFontResourceInfoW (try 2)

Dmitry Timoshkov dmitry at baikal.ru
Sun Dec 16 21:35:04 CST 2012


Stefan Leichter <Stefan.Leichter at camline.com> wrote:

> +    BYTE  buffer[MAX_PATH];

This should be WCHAR if you decided to test unicode version of the API
(although testing ANSI variant would be much easier), that will help
to avoid all those casts, and protect from insufficient buffer size.
Also please use a font that exists in Wine, such as sserife.fon, but
be prepared that it could be not found since font file name is locale
dependent.

-- 
Dmitry.



More information about the wine-devel mailing list