{
*p = 0;
if (!p[1]) continue; /* trailing backslash */
+#ifdef __REACTOS__ /* CORE-10587 */
hkey = open_key( comp, root, subkey, FALSE, access | READ_CONTROL );
+#else
+ hkey = open_key( comp, root, subkey, FALSE, access );
+#endif
if (!hkey) break;
res = RegDeleteKeyExW( hkey, p + 1, access, 0 );
RegCloseKey( hkey );
if (rc != ERROR_SUCCESS)
{
ERR("Failed to get stream\n");
- CloseHandle(the_file);
DeleteFileW(FilePath);
break;
}