From: Bernhard Übelacker Subject: [PATCH 4/8] mpr: Call RegEnumValueA with valid value parameter. Message-Id: <1435667886-6291-5-git-send-email-bernhardu@vr-web.de> Date: Tue, 30 Jun 2015 14:38:02 +0200 Bug #38796 (preparation) --- dlls/mpr/pwcache.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dlls/mpr/pwcache.c b/dlls/mpr/pwcache.c index 178d40f..aa09522 100644 --- a/dlls/mpr/pwcache.c +++ b/dlls/mpr/pwcache.c @@ -306,7 +306,8 @@ UINT WINAPI WNetEnumCachedPasswords( entry->cbPassword = data_sz; entry->iEntry = i; entry->nType = nType; - r = RegEnumValueA( hkey, i, NULL, &val_sz, NULL, &type, + size = sizeof val; + r = RegEnumValueA( hkey, i, val, &size, NULL, &type, &entry->abResource[val_sz], &data_sz ); if( r == ERROR_SUCCESS ) enumPasswordProc( entry, param ); -- 2.1.4