31 Jul
2025
31 Jul
'25
9:28 a.m.
From: Rémi Bernon <rbernon(a)codeweavers.com> --- dlls/joy.cpl/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/joy.cpl/main.c b/dlls/joy.cpl/main.c index 041f35d866c..11fc78f1038 100644 --- a/dlls/joy.cpl/main.c +++ b/dlls/joy.cpl/main.c @@ -189,7 +189,7 @@ static void set_advanced_option( const WCHAR *option, DWORD value ) static DWORD get_advanced_option( const WCHAR *option, DWORD default_value ) { - DWORD value, size; + DWORD value, size = sizeof(value); HKEY hkey; if (!get_advanced_key( &hkey )) return default_value; if (RegGetValueW( hkey, NULL, option, RRF_RT_REG_DWORD, NULL, (BYTE *)&value, &size )) -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/8684