user: Initialize size of nonclients struct in load_nonclient_metrics.

This commit is contained in:
Frank Richter 2006-08-14 20:09:50 +02:00 committed by Alexandre Julliard
parent 946b84d96c
commit e1e02dfcc2

View file

@ -1026,6 +1026,7 @@ static void load_nonclient_metrics(void)
NONCLIENTMETRICSW ncm;
INT r;
ncm.cbSize = sizeof (ncm);
if (RegOpenKeyExW (HKEY_CURRENT_USER, METRICS_REGKEY,
0, KEY_QUERY_VALUE, &hkey) != ERROR_SUCCESS) hkey = 0;