[PATCH 0/1] MR8684: joy.cpl: Initialize size before calling RegGetValueW.
31 Jul
31 Jul
2:28 p.m.
New subject: [PATCH 1/1] joy.cpl: Initialize size before calling RegGetValueW.
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
136
Age (days ago)
136
Last active (days ago)
1 comments
1 participants
participants (1)
-
Rémi Bernon