quartz: Improve removal of registry data in Filtermapper unregister methods.

This commit is contained in:
Alexander Dorofeyev 2008-06-29 15:07:53 +03:00 committed by Alexandre Julliard
parent f9e2914ed6
commit cd5fa7dedb
1 changed files with 9 additions and 3 deletions

View File

@ -1571,8 +1571,14 @@ static HRESULT WINAPI FilterMapper_UnregisterFilter(IFilterMapper * iface, CLSID
if (SUCCEEDED(hr))
{
lRet = RegDeleteKeyW(hKey, wszMeritName);
lRet = RegDeleteValueW(hKey, wszMeritName);
if (lRet != ERROR_SUCCESS)
hr = HRESULT_FROM_WIN32(lRet);
lRet = RegDeleteTreeW(hKey, wszPins);
if (lRet != ERROR_SUCCESS)
hr = HRESULT_FROM_WIN32(lRet);
CloseHandle(hKey);
}
@ -1628,7 +1634,7 @@ static HRESULT WINAPI FilterMapper_UnregisterPin(IFilterMapper * iface, CLSID Fi
strcatW(wszPinNameKey, wszSlash);
strcatW(wszPinNameKey, Name);
lRet = RegDeleteKeyW(hKey, wszPinNameKey);
lRet = RegDeleteTreeW(hKey, wszPinNameKey);
hr = HRESULT_FROM_WIN32(lRet);
CoTaskMemFree(wszPinNameKey);
}