kernel32: Avoid shadowing parameter "len".

This commit is contained in:
Marcus Meissner 2011-10-21 08:19:31 +02:00 committed by Alexandre Julliard
parent bba0180e56
commit db7ba0b230
1 changed files with 4 additions and 4 deletions

View File

@ -1113,11 +1113,11 @@ INT WINAPI GetPrivateProfileStringW( LPCWSTR section, LPCWSTR entry,
if (p >= def_val)
{
int len = (int)(p - def_val) + 1;
int vlen = (int)(p - def_val) + 1;
defval_tmp = HeapAlloc(GetProcessHeap(), 0, (len + 1) * sizeof(WCHAR));
memcpy(defval_tmp, def_val, len * sizeof(WCHAR));
defval_tmp[len] = '\0';
defval_tmp = HeapAlloc(GetProcessHeap(), 0, (vlen + 1) * sizeof(WCHAR));
memcpy(defval_tmp, def_val, vlen * sizeof(WCHAR));
defval_tmp[vlen] = '\0';
def_val = defval_tmp;
}
}