mirror of
https://github.com/reactos/reactos.git
synced 2024-10-03 16:05:37 +00:00
Sync cabinet.dll with Wine HEAD (fixes a memory leak)
svn path=/trunk/; revision=35965
This commit is contained in:
parent
e699646de8
commit
9e8367f15e
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue