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++)
|
||||
{
|
||||
hkeySub = 0;
|
||||
if (SUCCEEDED(res))
|
||||
{
|
||||
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));
|
||||
RegCloseKey(hkeyInproc32);
|
||||
}
|
||||
RegCloseKey(hkeySub);
|
||||
if (hkeySub) RegCloseKey(hkeySub);
|
||||
CoTaskMemFree(clsidString);
|
||||
clsidString = NULL;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue