Module: wine Branch: master Commit: 6b8c9aee4fd57ac1f2f949992b3c5a6702f780a2 URL: http://source.winehq.org/git/wine.git/?a=commit;h=6b8c9aee4fd57ac1f2f949992b... Author: Huw Davies <huw(a)codeweavers.com> Date: Fri Dec 4 14:28:04 2009 +0000 user32: Pad lfFaceName so we don't write uninitialised data to the registry. Found by Valgrind. --- dlls/user32/sysparams.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/user32/sysparams.c b/dlls/user32/sysparams.c index 5113acb..c6cb494 100644 --- a/dlls/user32/sysparams.c +++ b/dlls/user32/sysparams.c @@ -699,7 +699,7 @@ static BOOL SYSPARAMS_Save( LPCWSTR lpRegKey, LPCWSTR lpValName, LPCWSTR lpValue /* Convenience function to save logical fonts */ static BOOL SYSPARAMS_SaveLogFont( LPCWSTR lpRegKey, LPCWSTR lpValName, - const LPLOGFONTW plf, UINT fWinIni ) + const LOGFONTW *plf, UINT fWinIni ) { LOGFONTW lf = *plf; int len;