Sync cabinet.dll with Wine HEAD (fixes a memory leak)

svn path=/trunk/; revision=35965
This commit is contained in:
Colin Finck 2008-09-05 19:58:49 +00:00
parent e699646de8
commit 9e8367f15e

View file

@ -338,7 +338,10 @@ HRESULT WINAPI Extract(SESSION *dest, LPCSTR szCabName)
return E_FAIL;
if (GetFileAttributesA(dest->Destination) == INVALID_FILE_ATTRIBUTES)
return S_OK;
{
res = S_OK;
goto end;
}
/* split the cabinet name into path + name */
str = HeapAlloc(GetProcessHeap(), 0, lstrlenA(szCabName)+1);