Commit Graph

49 Commits

Author SHA1 Message Date
Alexandre Julliard afa91c9b23 cabinet: Use the bundled zlib.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-10-18 11:07:51 +02:00
Alexandre Julliard df2521bff2 cabinet: Build with msvcrt.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-11-25 20:47:43 +01:00
Alexandre Julliard 03e9bf95be cabinet: Import zlib deflate code.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-11-25 20:47:43 +01:00
Francois Gouget cdd1fd835a cabinet: A spelling fix in a variable / field name.
Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-09-02 20:47:06 +02:00
Detlef Riekenberg 3273dff7b6 cabinet: Properly initialize internal fci structure (Valgrind).
Signed-off-by: Detlef Riekenberg <wine.dev@web.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-11-14 11:07:09 -06:00
Andrew Talbot 73e82bacc3 cabinet: Mark some fall-throughs in switch statements. 2011-09-26 18:12:50 +02:00
Andrew Talbot 25ea532443 cabinet: void functions should not return a value. 2011-08-22 16:14:31 +02:00
Paul Vriens 80a0eb3b96 cabinet: Check correctly for the magic value (Coverity). 2011-03-14 12:18:09 +01:00
Alexandre Julliard 3dc669ffb5 cabinet: Fix the remaining todo_wine tests in fdi.c. 2011-02-19 13:05:57 +01:00
Alexandre Julliard 866adf4b50 cabinet: Avoid some memory allocations by storing buffers directly in the FCI structure. 2011-02-18 14:54:49 +01:00
Alexandre Julliard e1a0ef7ef8 cabinet: Add support for MSZIP compression. 2011-02-18 14:54:44 +01:00
Alexandre Julliard 527c8263a1 cabinet: Create temp files only once we have data to store into them. 2011-02-18 00:19:31 +01:00
Alexandre Julliard d651fbe4d1 cabinet: Cleanup file loading and add infrastructure for plugging in real compression. 2011-02-18 00:19:04 +01:00
Alexandre Julliard 682d9a2929 cabinet: Create one temp file per folder and avoid an extra copy of the data. 2011-02-17 16:48:19 +01:00
Alexandre Julliard ea22b17065 cabinet: Store the data block headers in a memory list instead of on-disk.
Compute the checksums only when writing to the final file.
2011-02-16 12:17:48 +01:00
Alexandre Julliard afae86aa1e cabinet: Rewrite the cabinet header output code, and write everything to disk in one step. 2011-02-15 20:08:44 +01:00
Alexandre Julliard 28fce46de7 cabinet: Store the CCAB data as soon as it is available.
Also add a helper function for the cabinet header size.
2011-02-15 16:51:29 +01:00
Alexandre Julliard 5dc4986dab cabinet: Add helper functions for temp file manipulations. 2011-02-15 16:51:29 +01:00
Alexandre Julliard 21aab68fbb cabinet: Store files in a list in memory instead of in a temp file. 2011-02-15 16:51:20 +01:00
Alexandre Julliard f6ebe3b8b2 cabinet: Store folders in a list in memory instead of in a temp file. 2011-02-14 20:05:46 +01:00
Alexandre Julliard a71fbe16d9 cabinet: Move the internal FCI structure to fci.c. 2011-02-04 11:35:46 +01:00
Alexandre Julliard b18b596621 cabinet: Pass an FCI pointer to internal functions instead of a handle. 2011-02-04 11:35:41 +01:00
Alexandre Julliard 9aa0e35ecc cabinet: Call FCI function pointers explicitly instead of hiding them inside macros. 2011-02-04 11:27:37 +01:00
Alexandre Julliard e30b19f115 cabinet: Replace the fci_set_error macro by a proper function. 2011-02-04 11:20:12 +01:00
Alexandre Julliard 09fbe972d8 cabinet: Use constants instead of hard-coded numbers for file open flags. 2011-02-03 20:02:10 +01:00
Alexandre Julliard 51c7fe5fc7 cabinet: Don't try to copy data from the file if we don't even have a data buffer. 2009-01-15 12:03:08 +01:00
Michael Stefaniuc e4db17f268 cabinet: Don't cast the return value of PF[CD]I_ALLOC; those are void pointers. 2009-01-02 11:53:48 +01:00
Ricardo Filipe 1a12aace57 cabinet: Fix dead stores (llvm/clang). 2008-11-18 13:04:59 +01:00
Andrew Talbot ac796d81e7 cabinet: Assign to structs instead of using memcpy. 2008-02-12 22:36:03 +01:00
Francois Gouget d0794c4aeb Assorted spelling fixes. 2008-01-23 21:16:22 +01:00
Austin English f6caf1be81 Misc spelling fixes. 2008-01-18 12:51:08 +01:00
Francois Gouget 44b52b128c Assorted spelling fixes. 2008-01-16 12:48:29 +01:00
Andrew Talbot f2df3d7582 cabinet: Remove unneeded casts. 2007-12-06 12:07:36 +01:00
Dan Kegel 559b38c34c cabinet: FCICreate: Initialize oldCCAB. 2007-11-05 14:19:07 +01:00
Dan Kegel c2330178eb cabinet: FCIAddFile: Set defaults in case callback doesn't set some fields. 2007-11-05 14:16:27 +01:00
Jeff Latimer 33af21fdcf cabinet: Fix a potential NULL reference. 2007-06-28 12:16:12 +02:00
Andrew Talbot 5c812a14f3 cabinet: Constify some variables. 2007-03-15 12:15:38 +01:00
Francois Gouget 367f91fb5c Assorted spelling fixes. 2006-12-14 20:25:05 +01:00
Marcus Meissner 0c15360a3e Removes all unnecessary WINE_DEFAULT_DEBUG_CHANNEL and respective wine/debug.h includes. 2006-09-11 11:30:48 +02:00
Jonathan Ernst 360a3f9142 Update the address of the Free Software Foundation. 2006-05-23 14:11:13 +02:00
Gerold J. Wucherpfennig 4f75f8469b cabinet: Set proper error information on failures. 2006-03-01 20:56:41 +01:00
Gerold Jens Wucherpfennig 0cd9009d48 The fci_get_little_endian... and fci_set_little_endian... functions
don't really set and unset little endianes, they do the same thing:
merely swapping bytes from one endianes to the other.
2005-07-10 17:46:34 +00:00
Francois Gouget 02c25a8981 Assorted spelling fixes. 2005-06-30 18:19:33 +00:00
Gerold Jens Wucherpfennig ff25db08a5 Support for big-endian systems. 2005-06-29 11:19:47 +00:00
Gerold Jens Wucherpfennig 4e1ec201ef Some FCI work. 2005-06-24 12:16:37 +00:00
Gerold Jens Wucherpfennig 2ed3c40758 Initial FCI work (FCICreate and FCIDestroy). 2005-05-14 11:06:10 +00:00
Alexandre Julliard e37c6e18d0 Fixed header dependencies to be fully compatible with the Windows
headers (with help from Dimitrie O. Paun).
2003-09-05 23:08:26 +00:00
Patrik Stridvall 7bff19ea6e Added FIXME:s in the stubs. 2002-12-02 19:00:59 +00:00
Patrik Stridvall d1447faaec Added stub implementation of cabinet.dll. 2002-11-19 00:47:12 +00:00