Commit b224319a authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

devenum: Initialize hKeysub.

parent a4c47c9e
......@@ -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;
}
......
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