Commit 48c73868 authored by Hugh McMaster's avatar Hugh McMaster Committed by Alexandre Julliard

reg/tests: Check all error codes in delete_tree() before returning.

parent be6295ab
......@@ -194,9 +194,8 @@ LONG delete_tree_(const char *file, unsigned line, HKEY root, const char *path,
else
ret = RegDeleteKeyExA(hkey, empty, sam, 0);
lok(!ret, "Failed to delete registry key, got error %d\n", ret);
cleanup:
lok(!ret, "Failed to delete registry key, got error %d\n", ret);
HeapFree(GetProcessHeap(), 0, subkey_name);
RegCloseKey(hkey);
return ret;
......
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