Commit e4cb946c authored by André Hentschel's avatar André Hentschel Committed by Alexandre Julliard

advapi32: Avoid shadowing a parameter.

parent 4001e60e
...@@ -1113,11 +1113,11 @@ LSTATUS WINAPI RegDeleteKeyExA( HKEY hkey, LPCSTR name, REGSAM access, DWORD res ...@@ -1113,11 +1113,11 @@ LSTATUS WINAPI RegDeleteKeyExA( HKEY hkey, LPCSTR name, REGSAM access, DWORD res
{ {
if (!is_version_nt()) /* win95 does recursive key deletes */ if (!is_version_nt()) /* win95 does recursive key deletes */
{ {
CHAR name[MAX_PATH]; CHAR sub[MAX_PATH];
while(!RegEnumKeyA(tmp, 0, name, sizeof(name))) while(!RegEnumKeyA(tmp, 0, sub, sizeof(sub)))
{ {
if(RegDeleteKeyExA(tmp, name, access, reserved)) /* recurse */ if(RegDeleteKeyExA(tmp, sub, access, reserved)) /* recurse */
break; break;
} }
} }
......
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