Stefan Leichter Stefan.Leichter@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.