=?UTF-8?Q?Bernhard=20=C3=9Cbelacker=20?=: mpr: Call RegEnumValueA with valid value parameter.
Alexandre Julliard
julliard at wine.codeweavers.com
Wed Jul 1 09:06:23 CDT 2015
Module: wine
Branch: master
Commit: b4ded3d77454cbcb2e1e06acde4c53b14cbd9ace
URL: http://source.winehq.org/git/wine.git/?a=commit;h=b4ded3d77454cbcb2e1e06acde4c53b14cbd9ace
Author: Bernhard Übelacker <bernhardu at vr-web.de>
Date: Tue Jun 30 14:38:02 2015 +0200
mpr: Call RegEnumValueA with valid value parameter.
---
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 );
More information about the wine-cvs
mailing list