user32: Handle GetTextMetricsW failure in get_text_metr_size

Dmitry Timoshkov dmitry at
Fri Jun 13 23:53:11 CDT 2008

"Roy Shea" <royshea at> wrote:

> Initializes the tmHeight field of the TEXTMETRICW used by callers of
> get_text_metr_size, even when calls to GetTextMetricsW fail.  This fix
> remedies the Valgrind errors of the form "normalize_nonclientmetrics
> (sysparams.c:1043)" found throughout the advpack test suite.

GetTextMetricsW should never fail. You need to find a reason of a failure.


More information about the wine-devel mailing list