[3/6] d3dx9: Implement ID3DXFont_GetDesc

Roderick Colenbrander thunderbird2k at gmail.com
Wed Jun 17 12:52:49 CDT 2009


Hi Tony,

+    WideCharToMultiByte(CP_ACP, 0, This->desc.FaceName, -1,
desc->FaceName, sizeof(desc->FaceName) / sizeof(CHAR), NULL, NULL);

sizeof(desc->FaceName) / sizeof(CHAR) won't give you the length of the
string (remember that sizeof is evaluated at compile time, so the
value is a constant)

Regards,
Roderick



More information about the wine-devel mailing list