devenum: Initialize hKeysub.
This commit is contained in:
parent
a4c47c9ec3
commit
b224319a26
|
@ -311,6 +311,7 @@ static HRESULT register_clsids(int count, const register_info * pRegInfo, LPCWST
|
||||||
|
|
||||||
for (i = 0; i < count; i++)
|
for (i = 0; i < count; i++)
|
||||||
{
|
{
|
||||||
|
hkeySub = 0;
|
||||||
if (SUCCEEDED(res))
|
if (SUCCEEDED(res))
|
||||||
{
|
{
|
||||||
res = StringFromCLSID(pRegInfo[i].clsid, &clsidString);
|
res = StringFromCLSID(pRegInfo[i].clsid, &clsidString);
|
||||||
|
@ -351,7 +352,7 @@ static HRESULT register_clsids(int count, const register_info * pRegInfo, LPCWST
|
||||||
(lstrlenW(pszThreadingModel) + 1) * sizeof(WCHAR));
|
(lstrlenW(pszThreadingModel) + 1) * sizeof(WCHAR));
|
||||||
RegCloseKey(hkeyInproc32);
|
RegCloseKey(hkeyInproc32);
|
||||||
}
|
}
|
||||||
RegCloseKey(hkeySub);
|
if (hkeySub) RegCloseKey(hkeySub);
|
||||||
CoTaskMemFree(clsidString);
|
CoTaskMemFree(clsidString);
|
||||||
clsidString = NULL;
|
clsidString = NULL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue