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:
parent
982137f73f
commit
96b1c96c88
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue