Pass an empty string instead of NULL to RegDeleteKey to delete hKey.

oldstable
James Hawkins 2005-04-13 14:40:58 +00:00 committed by Alexandre Julliard
parent 77a07a173b
commit 2a8f7962ff
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ static DWORD delete_key( HKEY hkey )
if (ret) break;
}
if (ret != ERROR_NO_MORE_ITEMS) return ret;
RegDeleteKeyA( hkey, NULL );
RegDeleteKeyA( hkey, "" );
return 0;
}