mirror of
https://github.com/reactos/wine.git
synced 2025-01-21 03:15:18 +00:00
kernel32: Avoid shadowing parameter "len".
This commit is contained in:
parent
bba0180e56
commit
db7ba0b230
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user