mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-14 19:45:39 +00:00
ole32: Free *ppszProgID on error path (Coverity).
This commit is contained in:
parent
fc179497bd
commit
2dbb23c810
|
@ -2033,8 +2033,11 @@ HRESULT WINAPI ProgIDFromCLSID(REFCLSID clsid, LPOLESTR *ppszProgID)
|
|||
*ppszProgID = CoTaskMemAlloc(progidlen * sizeof(WCHAR));
|
||||
if (*ppszProgID)
|
||||
{
|
||||
if (RegQueryValueW(hkey, NULL, *ppszProgID, &progidlen))
|
||||
if (RegQueryValueW(hkey, NULL, *ppszProgID, &progidlen)) {
|
||||
ret = REGDB_E_CLASSNOTREG;
|
||||
CoTaskMemFree(*ppszProgID);
|
||||
*ppszProgID = NULL;
|
||||
}
|
||||
}
|
||||
else
|
||||
ret = E_OUTOFMEMORY;
|
||||
|
|
Loading…
Reference in a new issue