Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
10772381
Commit
10772381
authored
Apr 24, 2008
by
Vitaly Perov
Committed by
Alexandre Julliard
Apr 25, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cabinet: Added a test for FDICopy with an empty cabinet file.
parent
f51e0e2d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
45 additions
and
0 deletions
+45
-0
fdi.c
dlls/cabinet/tests/fdi.c
+45
-0
No files found.
dlls/cabinet/tests/fdi.c
View file @
10772381
...
...
@@ -593,9 +593,54 @@ static void test_FDIIsCabinet(void)
delete_test_files
();
}
INT_PTR
__cdecl
CopyProgress
(
FDINOTIFICATIONTYPE
fdint
,
PFDINOTIFICATION
pfdin
)
{
return
0
;
}
static
void
test_FDICopy
(
void
)
{
CCAB
cabParams
;
HFDI
hfdi
;
HFCI
hfci
;
ERF
erf
;
BOOL
ret
;
char
name
[]
=
"extract.cab"
;
char
path
[
MAX_PATH
+
1
];
GetCurrentDirectoryA
(
MAX_PATH
,
path
);
set_cab_parameters
(
&
cabParams
);
hfci
=
FCICreate
(
&
erf
,
file_placed
,
mem_alloc
,
mem_free
,
fci_open
,
fci_read
,
fci_write
,
fci_close
,
fci_seek
,
fci_delete
,
get_temp_file
,
&
cabParams
,
NULL
);
ret
=
FCIFlushCabinet
(
hfci
,
FALSE
,
get_next_cabinet
,
progress
);
ok
(
ret
,
"Failed to flush the cabinet
\n
"
);
FCIDestroy
(
hfci
);
hfdi
=
FDICreate
(
fdi_alloc
,
fdi_free
,
fdi_open
,
fdi_read
,
fdi_write
,
fdi_close
,
fdi_seek
,
cpuUNKNOWN
,
&
erf
);
ret
=
FDICopy
(
hfdi
,
name
,
path
,
0
,
CopyProgress
,
NULL
,
0
);
todo_wine
{
ok
(
ret
,
"Expected FDICopy to succeed
\n
"
);
}
FDIDestroy
(
hfdi
);
DeleteFileA
(
name
);
}
START_TEST
(
fdi
)
{
test_FDICreate
();
test_FDIDestroy
();
test_FDIIsCabinet
();
test_FDICopy
();
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment