[PATCH 3/7] reg: Fail if the data for REG_DWORD cannot be converted into a DWORD

Alexandre Julliard julliard at winehq.org
Sun Feb 14 22:59:04 CST 2016


Hugh McMaster <hugh.mcmaster at outlook.com> writes:

> @@ -376,6 +376,12 @@ static int reg_add(WCHAR *key_name, WCHAR *value_name, BOOL value_empty,
>          if (data)
>              reg_data = get_regdata(data,reg_type,separator,&reg_count);
>  
> +        if (!reg_data && reg_type == REG_DWORD)
> +        {
> +            RegCloseKey(subkey);
> +            return 1;
> +        }

Shouldn't this fail for other types too?

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list