Commit cd5fa7de authored by Alexander Dorofeyev's avatar Alexander Dorofeyev Committed by Alexandre Julliard

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

parent f9e2914e
......@@ -1571,8 +1571,14 @@ static HRESULT WINAPI FilterMapper_UnregisterFilter(IFilterMapper * iface, CLSID
if (SUCCEEDED(hr))
{
lRet = RegDeleteKeyW(hKey, wszMeritName);
hr = HRESULT_FROM_WIN32(lRet);
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);
}
......
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