From 6b8c9aee4fd57ac1f2f949992b3c5a6702f780a2 Mon Sep 17 00:00:00 2001 From: Huw Davies Date: Fri, 4 Dec 2009 14:28:04 +0000 Subject: [PATCH] user32: Pad lfFaceName so we don't write uninitialised data to the registry. Found by Valgrind. --- dlls/user32/sysparams.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/user32/sysparams.c b/dlls/user32/sysparams.c index 5113acb72af..c6cb4940e8a 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;