mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-06 05:21:08 +00:00
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 a new issue