Commit Graph

60 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
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
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 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
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 99ef0d6ff0 makefiles: Get rid of the MAKE_TEST_RULES variable. 2014-01-02 12:13:16 +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
Michael Stefaniuc 0e681027a2 tests: Compile the tests by default with -D__WINESRC__. 2013-10-02 11:04:02 +02:00
Alexandre Julliard 3dc669ffb5 cabinet: Fix the remaining todo_wine tests in fdi.c. 2011-02-19 13:05:57 +01:00
Alexandre Julliard e1a0ef7ef8 cabinet: Add support for MSZIP compression. 2011-02-18 14:54:44 +01:00
Marko Nikolic 8d9788147c cabinet/tests: Removed sign comparison warnings. 2010-10-04 16:19:22 +02:00
Alexandre Julliard 9a39cb94e4 cabinet/tests: Make some variables static. 2010-10-01 13:38:58 +02:00
Alexandre Julliard 81b8ee863e makefiles: Add a standard header for all makefiles to replace the common variable initializations. 2010-09-19 12:36:48 +02:00
Alexandre Julliard b86d515ed6 dlls: Remove explicit imports of kernel32 and ntdll. 2010-07-21 17:38:36 +02:00
Alexandre Julliard bef5645eb1 makefiles: Remove the no longer needed explicit separators for dependencies. 2010-03-16 13:28:19 +01:00
Alexandre Julliard 6164ce2d82 makefiles: Use the standard C_SRCS variable as the list of test files.
This enables it to be auto-updated by make_makefiles.
2010-02-22 10:47:11 +01:00
Alexandre Julliard 91502b0634 cabinet/tests: Fix accesses to an invalid pointer. 2010-01-29 13:29:21 +01:00
James Hawkins 300cc0fea1 cabinet: Fix several file list leaks in the extract tests. 2010-01-07 17:59:58 +01:00
Nicolas Le Cam 387e415fdc cabinet/tests: Split an incorrect test in two valid ones. 2009-06-29 12:26:34 +02:00
Nicolas Le Cam 027bc8100c cabinet/tests: Avoid use of lstrlenA when not needed. 2009-06-29 12:26:27 +02:00
Michael Stefaniuc f516cab017 include: Change to LONG/ULONG in fdi.h for Win64 compatibility. 2009-01-14 12:21:20 +01:00
Michael Stefaniuc 602f42c25f include: Change to LONG/ULONG in fci.h for Win64 compatibility. 2009-01-14 12:21:13 +01:00
Alexandre Julliard 235ae03597 cabinet/tests: Add CDECL to the cabinet callback functions. 2009-01-03 20:12:39 +01:00
Francois Gouget 897af57deb cabinet/tests: Make CopyProgress() static. 2008-12-12 11:41:45 +01:00
James Hawkins fe8c3f9059 cabinet: Revert "cabinet: Fix for FDICopy with an empty cabinet file.".
This reverts commit 33e561f53c.
Fixed the test that fails on all platforms.
2008-04-28 13:27:51 +02:00
Vitaly Perov 33e561f53c cabinet: Fix for FDICopy with an empty cabinet file. 2008-04-25 15:02:10 +02:00
Vitaly Perov 1077238143 cabinet: Added a test for FDICopy with an empty cabinet file. 2008-04-25 15:01:48 +02:00
Reece H. Dunn 0edae1c9ea cabinet: Make the fdi tests pass on Vista. 2008-02-06 13:49:38 +01:00
Austin English f6caf1be81 Misc spelling fixes. 2008-01-18 12:51:08 +01:00
Alexandre Julliard ad9396302d Removed some unneeded imports. 2007-12-06 21:24:24 +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
James Hawkins e533893da8 cabinet: Fix two tests that return E_FAIL on win98. 2007-10-26 14:03:46 +02:00
James Hawkins fbf3cef553 cabinet: Add initial tests for FDI. 2007-08-29 11:59:22 +02:00
James Hawkins a72e182010 cabinet: Don't extract a file if DoExtract is FALSE. 2007-08-27 12:18:39 +02:00
James Hawkins 2918a272e3 cabinet: Return the value of GetLastError if FDICopy fails. 2007-08-24 11:26:48 +02:00
James Hawkins b1bd920818 cabinet: Append new file nodes to the front of the file list. 2007-08-24 11:22:38 +02:00
James Hawkins 80e149d62c cabinet: Pass the session Error to FDICopy. 2007-08-24 11:21:54 +02:00
James Hawkins 75e9ae7ece cabinet: Formalize the SESSION struct and add more tests of its members. 2007-08-22 12:19:00 +02:00
Paul Vriens 85867205e5 cabinet/tests: Use GetModuleHandleA instead of LoadLibraryA. 2007-08-14 20:29:21 +02:00
Paul Vriens 5bbc6323dc cabinet: Make tests run on Win98 again. 2006-10-06 12:53:25 +02:00
Michael Stefaniuc dec4332a1e cabinet/tests: Win64 printf format warning fixes. 2006-10-06 12:33:34 +02:00
Michael Stefaniuc 85ce5117c5 Add a WINE_NO_LONG_INT define to many makefiles to ease the transition of DWORD/LONG/ULONG from long to int. 2006-09-29 16:08:30 +02:00