Pass an empty string instead of NULL to RegDeleteKey to delete hKey.
This commit is contained in:
parent
77a07a173b
commit
2a8f7962ff
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue