dpnet: Initialize size before call to RegGetValueW (Coverity).

Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alistair Leslie-Hughes 2019-10-20 10:26:58 +00:00 committed by Alexandre Julliard
parent 982137f73f
commit 96b1c96c88

View file

@ -157,6 +157,7 @@ HRESULT enum_services_providers(const GUID * const service, DPN_SERVICE_PROVIDER
next_key = RegEnumKeyW( key, index, provider, MAX_PATH);
while(next_key == ERROR_SUCCESS)
{
size = 0;
res = RegGetValueW(key, provider, friendly, RRF_RT_REG_SZ, NULL, NULL, &size);
if(res == ERROR_SUCCESS)
{
@ -198,6 +199,7 @@ HRESULT enum_services_providers(const GUID * const service, DPN_SERVICE_PROVIDER
next_key = RegEnumKeyW( key, index, provider, MAX_PATH);
while(next_key == ERROR_SUCCESS)
{
size = 0;
res = RegGetValueW(key, provider, friendly, RRF_RT_REG_SZ, NULL, NULL, &size);
if(res == ERROR_SUCCESS)
{