Commit 96b1c96c authored by Alistair Leslie-Hughes's avatar Alistair Leslie-Hughes Committed by Alexandre Julliard

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

parent 982137f7
......@@ -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)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment