Don't close reg key if the open failed.

This commit is contained in:
Huw Davies 2005-03-29 13:06:57 +00:00 committed by Alexandre Julliard
parent 41079866f7
commit e42a23d2d3

View file

@ -1030,9 +1030,9 @@ HRESULT WINAPI ProgIDFromCLSID(REFCLSID clsid, LPOLESTR *lplpszProgID)
}
}
HeapFree(GetProcessHeap(), 0, buf2);
RegCloseKey(xhkey);
}
RegCloseKey(xhkey);
return ret;
}