Commit 637257b9 authored by George Stephanos's avatar George Stephanos Committed by Alexandre Julliard

quartz: Replace CloseHandle by RegCloseKey.

parent 1825bddb
...@@ -307,7 +307,7 @@ static HRESULT WINAPI FilterMapper3_CreateCategory( ...@@ -307,7 +307,7 @@ static HRESULT WINAPI FilterMapper3_CreateCategory(
hr = HRESULT_FROM_WIN32(lRet); hr = HRESULT_FROM_WIN32(lRet);
} }
CloseHandle(hKey); RegCloseKey(hKey);
CoTaskMemFree(wClsidCategory); CoTaskMemFree(wClsidCategory);
CoTaskMemFree(wClsidAMCat); CoTaskMemFree(wClsidAMCat);
...@@ -1287,7 +1287,7 @@ static HRESULT WINAPI FilterMapper_RegisterFilter(IFilterMapper * iface, CLSID c ...@@ -1287,7 +1287,7 @@ static HRESULT WINAPI FilterMapper_RegisterFilter(IFilterMapper * iface, CLSID c
{ {
lRet = RegSetValueExW(hKey, NULL, 0, REG_SZ, (const BYTE*)szName, (strlenW(szName) + 1) * sizeof(WCHAR)); lRet = RegSetValueExW(hKey, NULL, 0, REG_SZ, (const BYTE*)szName, (strlenW(szName) + 1) * sizeof(WCHAR));
hr = HRESULT_FROM_WIN32(lRet); hr = HRESULT_FROM_WIN32(lRet);
CloseHandle(hKey); RegCloseKey(hKey);
} }
if (SUCCEEDED(hr)) if (SUCCEEDED(hr))
...@@ -1303,7 +1303,7 @@ static HRESULT WINAPI FilterMapper_RegisterFilter(IFilterMapper * iface, CLSID c ...@@ -1303,7 +1303,7 @@ static HRESULT WINAPI FilterMapper_RegisterFilter(IFilterMapper * iface, CLSID c
{ {
lRet = RegSetValueExW(hKey, wszMeritName, 0, REG_DWORD, (LPBYTE)&dwMerit, sizeof(dwMerit)); lRet = RegSetValueExW(hKey, wszMeritName, 0, REG_DWORD, (LPBYTE)&dwMerit, sizeof(dwMerit));
hr = HRESULT_FROM_WIN32(lRet); hr = HRESULT_FROM_WIN32(lRet);
CloseHandle(hKey); RegCloseKey(hKey);
} }
CoTaskMemFree(wszClsid); CoTaskMemFree(wszClsid);
...@@ -1407,9 +1407,9 @@ static HRESULT WINAPI FilterMapper_RegisterPin( ...@@ -1407,9 +1407,9 @@ static HRESULT WINAPI FilterMapper_RegisterPin(
CoTaskMemFree(wszClsid); CoTaskMemFree(wszClsid);
if (hKey) if (hKey)
CloseHandle(hKey); RegCloseKey(hKey);
if (hPinsKey) if (hPinsKey)
CloseHandle(hPinsKey); RegCloseKey(hPinsKey);
return hr; return hr;
} }
...@@ -1480,7 +1480,7 @@ static HRESULT WINAPI FilterMapper_RegisterPinType( ...@@ -1480,7 +1480,7 @@ static HRESULT WINAPI FilterMapper_RegisterPinType(
lRet = RegCreateKeyExW(hKey, wszKeyName, 0, NULL, REG_OPTION_NON_VOLATILE, KEY_WRITE, NULL, &hkeyDummy, NULL); lRet = RegCreateKeyExW(hKey, wszKeyName, 0, NULL, REG_OPTION_NON_VOLATILE, KEY_WRITE, NULL, &hkeyDummy, NULL);
hr = HRESULT_FROM_WIN32(lRet); hr = HRESULT_FROM_WIN32(lRet);
CloseHandle(hKey); RegCloseKey(hKey);
if (hkeyDummy) RegCloseKey(hkeyDummy); if (hkeyDummy) RegCloseKey(hkeyDummy);
} }
...@@ -1514,7 +1514,7 @@ static HRESULT WINAPI FilterMapper_UnregisterFilter(IFilterMapper * iface, CLSID ...@@ -1514,7 +1514,7 @@ static HRESULT WINAPI FilterMapper_UnregisterFilter(IFilterMapper * iface, CLSID
{ {
lRet = RegDeleteKeyW(hKey, wszClsid); lRet = RegDeleteKeyW(hKey, wszClsid);
hr = HRESULT_FROM_WIN32(lRet); hr = HRESULT_FROM_WIN32(lRet);
CloseHandle(hKey); RegCloseKey(hKey);
} }
if (SUCCEEDED(hr)) if (SUCCEEDED(hr))
...@@ -1536,7 +1536,7 @@ static HRESULT WINAPI FilterMapper_UnregisterFilter(IFilterMapper * iface, CLSID ...@@ -1536,7 +1536,7 @@ static HRESULT WINAPI FilterMapper_UnregisterFilter(IFilterMapper * iface, CLSID
if (lRet != ERROR_SUCCESS) if (lRet != ERROR_SUCCESS)
hr = HRESULT_FROM_WIN32(lRet); hr = HRESULT_FROM_WIN32(lRet);
CloseHandle(hKey); RegCloseKey(hKey);
} }
CoTaskMemFree(wszClsid); CoTaskMemFree(wszClsid);
...@@ -1598,7 +1598,7 @@ static HRESULT WINAPI FilterMapper_UnregisterPin(IFilterMapper * iface, CLSID Fi ...@@ -1598,7 +1598,7 @@ static HRESULT WINAPI FilterMapper_UnregisterPin(IFilterMapper * iface, CLSID Fi
CoTaskMemFree(wszClsid); CoTaskMemFree(wszClsid);
if (hKey) if (hKey)
CloseHandle(hKey); RegCloseKey(hKey);
return hr; return 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