mpr: Call RegEnumValueA with valid value parameter.

This commit is contained in:
Bernhard Übelacker 2015-06-30 14:38:02 +02:00 committed by Alexandre Julliard
parent d1ca4e87c3
commit b4ded3d774
1 changed files with 2 additions and 1 deletions

View File

@ -306,7 +306,8 @@ UINT WINAPI WNetEnumCachedPasswords(
entry->cbPassword = data_sz; entry->cbPassword = data_sz;
entry->iEntry = i; entry->iEntry = i;
entry->nType = nType; 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 ); &entry->abResource[val_sz], &data_sz );
if( r == ERROR_SUCCESS ) if( r == ERROR_SUCCESS )
enumPasswordProc( entry, param ); enumPasswordProc( entry, param );