Commit b4ded3d7 authored by Bernhard Übelacker's avatar Bernhard Übelacker Committed by Alexandre Julliard

mpr: Call RegEnumValueA with valid value parameter.

parent d1ca4e87
......@@ -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 );
......
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