diff --git a/dlls/ole32/compobj.c b/dlls/ole32/compobj.c index 0c70168c7b8..ad44b1dfc79 100644 --- a/dlls/ole32/compobj.c +++ b/dlls/ole32/compobj.c @@ -1030,9 +1030,9 @@ HRESULT WINAPI ProgIDFromCLSID(REFCLSID clsid, LPOLESTR *lplpszProgID) } } HeapFree(GetProcessHeap(), 0, buf2); + RegCloseKey(xhkey); } - RegCloseKey(xhkey); return ret; }