Commit Graph

228 Commits

Author SHA1 Message Date
Eric Pouech 8c7d53a5b0 cabinet/tests: Enable compilation with long types.
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-02-23 10:17:25 +01:00
Eric Pouech 0197a1c0cc cabinet: Enable compilation with long types.
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-02-09 18:37:32 +01:00
Alexandre Julliard f0cd33c69e include: Add support for defining Win32 types as 'long' where possible.
Add -DWINE_NO_LONG_TYPES to modules that still have compilation
warnings with long types.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-01-27 20:38:22 +01:00
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 088a787a2c makefiles: Make -mno-cygwin the default.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-09-20 22:45:48 +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
Isira Seneviratne 6054f2cc6e cabinet/tests: Alter string declaration to include null terminator.
Signed-off-by: Isira Seneviratne <isirasen96@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-08-20 21:29:37 +02:00
Alexandre Julliard 7ac6cdfa00 configure: Use pkg-config to check for zlib.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-06-04 19:23:11 +02:00
Alexandre Julliard d38ec9e226 cabinet/tests: Remove duplicate defines.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-16 22:55:50 +02:00
Alexandre Julliard 5cb30bbf6e cabinet: Treat only -1 as an error from the FDICopy callback.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-12-15 18:48:55 +01:00
Michael Müller 67639e6ce7 cabinet: Set index of folder in FDICopy callback.
Signed-off-by: Michael Müller <michael@fds-team.de>
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-08 15:31:56 +01:00
Lauri Kenttä 1f7d144ff9 cabinet: Make Extract fail on read-only files.
Signed-off-by: Lauri Kenttä <lauri.kentta@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-06 14:15:26 +01:00
Lauri Kenttä af86bdc31b cabinet: Make Extract overwrite existing files.
Only read-only files must not be overwritten.

Signed-off-by: Lauri Kenttä <lauri.kentta@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-06 14:15:26 +01: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
Nikolay Sivov a6c47d7323 cabinet: Fix its vs it's typos.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-04 09:07:49 -05:00
Andrey Gusev c622b461bb cabinet: Use debugstr_a() in TRACE() message.
Signed-off-by: Andrey Gusev <andrey.goosev@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-26 11:33:59 +09:00
Hugh McMaster 11669fa5e2 Assorted spelling and grammar fixes.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-17 22:56:40 +09:00
Vincent Povirk c97da4c944 cabinet: Accept hf == 0 in FDIIsCabinet. 2014-12-03 11:13:25 +01:00
Vincent Povirk 685c68ba61 cabinet/tests: Add test for calling FDIIsCabinet with hf == 0. 2014-12-03 11:13:20 +01:00
Dmitry Timoshkov 65562be420 cabinet/tests: Advance buffer by actually read bytes count. 2014-02-10 10:43:55 +01:00
Alexandre Julliard cf0e96c6d0 configure: Rename substituted variables to a standard _CFLAGS and _LIBS format. 2014-01-30 14:51:33 +01:00
Alexandre Julliard 99ef0d6ff0 makefiles: Get rid of the MAKE_TEST_RULES variable. 2014-01-02 12:13:16 +01:00
Alexandre Julliard 5e7416e5c8 makefiles: Get rid of the MAKE_DLL_RULES variable. 2014-01-02 12:08:18 +01:00
Dmitry Timoshkov 3b8f4a280c cabinet: Remove a no longer valid comment about seeking and restoring CAB position. 2013-12-31 16:18:48 +01:00
Dmitry Timoshkov 4ddb9f6915 cabinet: Read CAB size from the file header instead of calling FDI seek callback with SEEK_END.
SEEK_END is not supported by some callback implementations.
2013-12-31 16:18:28 +01:00
Dmitry Timoshkov 3cb5b93db9 cabinet/tests: Add an FDICopy test which emulates extracting from a memory block. 2013-12-31 16:18:08 +01:00
Nikolay Sivov 947977f614 cabinet/tests: Compile with -D__WINESRC__. 2013-10-15 17:43:32 +02:00
Frédéric Delanoy fbcf83f79c cabinet: Use BOOL type where appropriate. 2013-10-04 12:46:29 +02:00
Michael Stefaniuc 0e681027a2 tests: Compile the tests by default with -D__WINESRC__. 2013-10-02 11:04:02 +02:00
Andrew Talbot d03b13c534 cabinet: Avoid signed-unsigned integer comparisons. 2013-01-02 13:35:51 +01:00
Christian Costa 94bfd24f67 cabinet: Simplify concatenation of path and filename. 2012-11-28 20:14:43 +01:00
Christian Costa 8b6f917518 cabinet: Remove useless ERR and turn one ERR into a WARN. 2012-11-28 20:14:42 +01:00
Christian Costa db497bdc44 cabinet: Simplify concatenation of path and filename. 2012-11-23 18:06:06 +01:00
Jacek Caban 173dff4ccb cabinet: Improved debug traces. 2012-11-02 19:47:17 +01:00
André Hentschel a5a99047e4 cabinet: Reorder code to make sure str is freed (coverity). 2012-10-26 11:46:01 +02:00
Michael Stefaniuc f631780da4 cabinet: Avoid TRUE-FALSE conditional expressions. 2012-07-26 12:11:09 +02:00
Michael Stefaniuc b41c71e3ab cabinet: Simplify the "pointer to start of array" idiom. 2012-07-25 16:11:18 +02: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
Frédéric Delanoy f932abf326 dlls: Assorted spelling fixes. 2011-08-01 18:26:27 +02:00
André Hentschel 9701621f0f cabinet: Be more verbose. 2011-03-29 12:20:17 +02:00
Paul Vriens 81f2a237f3 cabinet: Check correctly for the magic value (Coverity). 2011-03-14 12:18:14 +01:00
Paul Vriens 80a0eb3b96 cabinet: Check correctly for the magic value (Coverity). 2011-03-14 12:18:09 +01:00
Alexandre Julliard 130e38e047 cabinet: Preserve trailing slash on directory name in Extract(). 2011-02-21 19:36:32 +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