[2/2] gdi32/tests: Added tests for GetFontResourceInfoW

Dmitry Timoshkov dmitry at baikal.ru
Thu Dec 13 21:41:57 CST 2012

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

> +    pCopyFileW = (void *)GetProcAddress(hkernel32, "CopyFileW");
> +    pExpandEnvironmentStringsW = (void *)GetProcAddress(hkernel32, "ExpandEnvironmentStringsW");
> +    pGetCurrentDirectoryW = (void *)GetProcAddress(hkernel32, "GetCurrentDirectoryW");

There is no reason to import these APIs using GetProcAddress. Also testing
GetFontResourceInfo without checking actual buffer contents is not very

Google points to http://www.undocprint.org/winspool/getfontresourceinfo which
seems to have some description of this API, with symbolic names of the type
parameter, so testing something besides type == 1 would be a good idea as well.


More information about the wine-devel mailing list