Commit a0a800ab authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

msi: Don't leak the file handle on error in cabinet_close_file_info().

parent c8e28023
......@@ -507,16 +507,23 @@ static INT_PTR cabinet_close_file_info(FDINOTIFICATIONTYPE fdint,
data->mi->is_continuous = FALSE;
if (!DosDateTimeToFileTime(pfdin->date, pfdin->time, &ft))
{
CloseHandle(handle);
return -1;
}
if (!LocalFileTimeToFileTime(&ft, &ftLocal))
{
CloseHandle(handle);
return -1;
}
if (!SetFileTime(handle, &ftLocal, 0, &ftLocal))
{
CloseHandle(handle);
return -1;
}
CloseHandle(handle);
data->cb(data->package, data->curfile, MSICABEXTRACT_FILEEXTRACTED, NULL, NULL,
data->user);
data->cb(data->package, data->curfile, MSICABEXTRACT_FILEEXTRACTED, NULL, NULL, data->user);
msi_free(data->curfile);
data->curfile = NULL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment