[3/6] d3dx9: Implement ID3DXFont_GetDesc

Tony Wasserka tony.wasserka at freenet.de
Wed Jun 17 14:04:01 CDT 2009


Roderick Colenbrander schrieb:
> 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
>
>
>   
FaceName is an array of (W)CHARs with a fixed size of LF_FACESIZE, so
that would be okay, wouldn't it?
The code which is in the official tree right now does this, too, so I
thought it'd be okay.




More information about the wine-devel mailing list