Commit c5bf1977 authored by Mariusz Pluciński's avatar Mariusz Pluciński Committed by Alexandre Julliard

shell32: Add IKnownFolderManager::UnregisterFolder implementation.

parent 7a3b53ab
......@@ -3477,8 +3477,17 @@ static HRESULT WINAPI foldermanager_UnregisterFolder(
IKnownFolderManager *iface,
REFKNOWNFOLDERID rfid)
{
FIXME("%p\n", rfid);
return E_NOTIMPL;
HRESULT hr;
LPWSTR registryPath = NULL;
TRACE("(%p, %s)\n", iface, debugstr_guid(rfid));
hr = get_known_folder_registry_path(rfid, &registryPath);
if(SUCCEEDED(hr))
hr = HRESULT_FROM_WIN32(RegDeleteKeyW(HKEY_LOCAL_MACHINE, registryPath));
HeapFree(GetProcessHeap(), 0, registryPath);
return hr;
}
static HRESULT WINAPI foldermanager_FindFolderFromPath(
......
......@@ -1242,7 +1242,6 @@ static void test_knownFolders(void)
}
hr = IKnownFolderManager_UnregisterFolder(mgr, &newFolderId);
todo_wine
ok(hr == S_OK, "failed to unregister folder: 0x%08x\n", hr);
}
}
......
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